#[repr(C)]pub struct telnet_connection_interface {
pub setup: Option<unsafe extern "C" fn(obj: *mut conf_object_t, port: uint16) -> bool>,
pub listening: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>,
pub connected: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>,
pub remote_port: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint16>,
pub remote_ip: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bytes_t>,
pub local_port: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint16>,
pub disconnect: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub shutdown: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
}
Fields§
§setup: Option<unsafe extern "C" fn(obj: *mut conf_object_t, port: uint16) -> bool>
§listening: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>
§connected: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>
§remote_port: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint16>
§remote_ip: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bytes_t>
§local_port: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint16>
§disconnect: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§shutdown: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
Trait Implementations§
source§impl Clone for telnet_connection_interface
impl Clone for telnet_connection_interface
source§fn clone(&self) -> telnet_connection_interface
fn clone(&self) -> telnet_connection_interface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for telnet_connection_interface
impl Debug for telnet_connection_interface
source§impl Default for telnet_connection_interface
impl Default for telnet_connection_interface
source§fn default() -> telnet_connection_interface
fn default() -> telnet_connection_interface
Returns the “default value” for a type. Read more
source§impl Hash for telnet_connection_interface
impl Hash for telnet_connection_interface
source§impl Ord for telnet_connection_interface
impl Ord for telnet_connection_interface
source§fn cmp(&self, other: &telnet_connection_interface) -> Ordering
fn cmp(&self, other: &telnet_connection_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialOrd for telnet_connection_interface
impl PartialOrd for telnet_connection_interface
impl Copy for telnet_connection_interface
impl Eq for telnet_connection_interface
impl StructuralPartialEq for telnet_connection_interface
Auto Trait Implementations§
impl Freeze for telnet_connection_interface
impl RefUnwindSafe for telnet_connection_interface
impl Send for telnet_connection_interface
impl Sync for telnet_connection_interface
impl Unpin for telnet_connection_interface
impl UnwindSafe for telnet_connection_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)