Struct CallbackCapture
pub struct CallbackCapture {
pub logon_called: bool,
pub logon_action: u32,
pub logout_called: bool,
pub logout_reconnect: bool,
pub new_state_called: bool,
pub new_state_old: u32,
pub new_state_new: u32,
}Expand description
Captures callback invocations for testing
Fields§
§logon_called: boolWhether on_logon callback was invoked
logon_action: u32LogonAction value from on_logon callback
logout_called: boolWhether on_logout callback was invoked
logout_reconnect: boolReconnect flag from on_logout callback
new_state_called: boolWhether on_new_state callback was invoked
new_state_old: u32Old session state from on_new_state callback
new_state_new: u32New session state from on_new_state callback
Trait Implementations§
§impl Clone for CallbackCapture
impl Clone for CallbackCapture
§fn clone(&self) -> CallbackCapture
fn clone(&self) -> CallbackCapture
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CallbackCapture
impl RefUnwindSafe for CallbackCapture
impl Send for CallbackCapture
impl Sync for CallbackCapture
impl Unpin for CallbackCapture
impl UnwindSafe for CallbackCapture
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