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 SendPosition: Option<unsafe extern "C" fn(pos: Vec3, yaw: f32, pitch: f32)>,
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 WriteBuffer: *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)>SendPosition: Option<unsafe extern "C" fn(pos: Vec3, yaw: f32, pitch: f32)>SendData: Option<unsafe extern "C" fn(data: *const cc_uint8, len: cc_uint32)>Name: cc_stringMOTD: cc_stringAppName: cc_stringWriteBuffer: *mut cc_uint8IsSinglePlayer: cc_boolDisconnected: cc_boolSupportsExtPlayerList: cc_boolSupportsPlayerClick: cc_boolSupportsPartialMessages: cc_boolSupportsFullCP437: cc_boolAddress: cc_stringPort: c_intTrait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
