pub struct ConnectionSnapshot {
pub revision: u64,
pub session_id: SessionId,
pub state: ConnectionState,
pub last_error: Option<NetError>,
}Expand description
Latest state snapshot for a connection session; observers may receive a snapshot after intermediate updates have been coalesced.
Fields§
§revision: u64Monotonically increasing snapshot revision within the session; starts at 0.
session_id: SessionIdIdentifier of the logical connection session represented by this snapshot.
state: ConnectionStateCurrent lifecycle state of the session.
last_error: Option<NetError>Most recently recorded error, if any. Later state changes do not clear an existing error automatically.
Trait Implementations§
Source§impl Clone for ConnectionSnapshot
impl Clone for ConnectionSnapshot
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionSnapshot
impl !UnwindSafe for ConnectionSnapshot
impl Freeze for ConnectionSnapshot
impl Send for ConnectionSnapshot
impl Sync for ConnectionSnapshot
impl Unpin for ConnectionSnapshot
impl UnsafeUnpin for ConnectionSnapshot
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