pub struct ConnectionStatusCallback { /* private fields */ }Expand description
This is a concrete implementation of OnConnectionStatusChange that calls the supplied function.
Implementations§
Trait Implementations§
Source§impl Debug for ConnectionStatusCallback
impl Debug for ConnectionStatusCallback
Source§impl OnConnectionStatusChange for ConnectionStatusCallback
impl OnConnectionStatusChange for ConnectionStatusCallback
Source§fn on_connection_status_change(&mut self, connected: bool)
fn on_connection_status_change(&mut self, connected: bool)
Called when the connection status changes from connected to disconnected or vice versa
Auto Trait Implementations§
impl Freeze for ConnectionStatusCallback
impl !RefUnwindSafe for ConnectionStatusCallback
impl Send for ConnectionStatusCallback
impl Sync for ConnectionStatusCallback
impl Unpin for ConnectionStatusCallback
impl !UnwindSafe for ConnectionStatusCallback
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