pub struct SessionStateUpdate {
pub peer_id: PeerId,
pub old_state: ConnectionState,
pub new_state: ConnectionState,
pub reason: StateChangeReason,
}
Expand description
Session state update notification
Fields§
§peer_id: PeerId
Peer ID for this session
old_state: ConnectionState
Previous connection state
new_state: ConnectionState
New connection state
reason: StateChangeReason
Reason for state change
Trait Implementations§
Source§impl Clone for SessionStateUpdate
impl Clone for SessionStateUpdate
Source§fn clone(&self) -> SessionStateUpdate
fn clone(&self) -> SessionStateUpdate
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 SessionStateUpdate
impl RefUnwindSafe for SessionStateUpdate
impl Send for SessionStateUpdate
impl Sync for SessionStateUpdate
impl Unpin for SessionStateUpdate
impl UnwindSafe for SessionStateUpdate
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