Struct classicube_sys::_ServerConnectionData

source ·
#[repr(C)]
pub struct _ServerConnectionData {
Show 18 fields pub BeginConnect: Option<unsafe extern "C" fn()>, pub Tick: Option<unsafe extern "C" fn(task: *mut ScheduledTask)>, pub SendBlock: Option<unsafe extern "C" fn(x: c_int, y: c_int, z: c_int, old: BlockID, now: BlockID)>, pub SendChat: Option<unsafe extern "C" fn(text: *const cc_string)>, pub __Unused: Option<unsafe extern "C" fn()>, pub SendData: Option<unsafe extern "C" fn(data: *const cc_uint8, len: cc_uint32)>, pub Name: cc_string, pub MOTD: cc_string, pub AppName: cc_string, pub ___unused: *mut cc_uint8, pub IsSinglePlayer: cc_bool, pub Disconnected: cc_bool, pub SupportsExtPlayerList: cc_bool, pub SupportsPlayerClick: cc_bool, pub SupportsPartialMessages: cc_bool, pub SupportsFullCP437: cc_bool, pub Address: cc_string, pub Port: c_int,
}

Fields§

§BeginConnect: Option<unsafe extern "C" fn()>§Tick: Option<unsafe extern "C" fn(task: *mut ScheduledTask)>§SendBlock: Option<unsafe extern "C" fn(x: c_int, y: c_int, z: c_int, old: BlockID, now: BlockID)>§SendChat: Option<unsafe extern "C" fn(text: *const cc_string)>§__Unused: Option<unsafe extern "C" fn()>§SendData: Option<unsafe extern "C" fn(data: *const cc_uint8, len: cc_uint32)>§Name: cc_string§MOTD: cc_string§AppName: cc_string§___unused: *mut cc_uint8§IsSinglePlayer: cc_bool§Disconnected: cc_bool§SupportsExtPlayerList: cc_bool§SupportsPlayerClick: cc_bool§SupportsPartialMessages: cc_bool§SupportsFullCP437: cc_bool§Address: cc_string§Port: c_int

Trait Implementations§

source§

impl Debug for _ServerConnectionData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for _ServerConnectionData

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for _ServerConnectionData

source§

fn eq(&self, other: &_ServerConnectionData) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for _ServerConnectionData

source§

impl StructuralPartialEq for _ServerConnectionData

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.