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_string
MOTD: cc_string
AppName: cc_string
WriteBuffer: *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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.