pub struct CallbackProcessor {
pub on_server_connected: fn(u64),
pub on_server_connected_with_address: fn(u64, &str),
pub on_server_data_received: fn(u64, &[u8], TransportChannel),
pub on_server_data_sent: fn(u64, &[u8], TransportChannel),
pub on_server_error: fn(u64, TransportError, &str),
pub on_server_transport_exception: fn(u64, Box<dyn Error>),
pub on_server_disconnected: fn(u64),
}Fields§
§on_server_connected: fn(u64)§on_server_connected_with_address: fn(u64, &str)§on_server_data_received: fn(u64, &[u8], TransportChannel)§on_server_data_sent: fn(u64, &[u8], TransportChannel)§on_server_error: fn(u64, TransportError, &str)§on_server_transport_exception: fn(u64, Box<dyn Error>)§on_server_disconnected: fn(u64)Auto Trait Implementations§
impl Freeze for CallbackProcessor
impl RefUnwindSafe for CallbackProcessor
impl Send for CallbackProcessor
impl Sync for CallbackProcessor
impl Unpin for CallbackProcessor
impl UnwindSafe for CallbackProcessor
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.