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_intTrait Implementations§
source§impl Debug for _ServerConnectionData
impl Debug for _ServerConnectionData
source§impl Hash for _ServerConnectionData
impl Hash for _ServerConnectionData
source§impl PartialEq for _ServerConnectionData
impl PartialEq for _ServerConnectionData
source§fn eq(&self, other: &_ServerConnectionData) -> bool
fn eq(&self, other: &_ServerConnectionData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for _ServerConnectionData
impl StructuralPartialEq for _ServerConnectionData
Auto Trait Implementations§
impl RefUnwindSafe for _ServerConnectionData
impl !Send for _ServerConnectionData
impl !Sync for _ServerConnectionData
impl Unpin for _ServerConnectionData
impl UnwindSafe for _ServerConnectionData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more