#[non_exhaustive]pub enum ServerObservationKind {
Connected {
connection_id: ObservationConnectionId,
peer: SocketAddr,
local: SocketAddr,
transport: StationTransport,
},
Signaling(SignalingObservation),
Identified {
connection_id: ObservationConnectionId,
device_id: DeviceId,
session_generation: SessionGeneration,
},
Disconnected {
connection_id: ObservationConnectionId,
reason: StationDisconnectReason,
},
}Expand description
Connection lifecycle and signaling records emitted by the server.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connected
Fields
§
connection_id: ObservationConnectionId§
peer: SocketAddr§
local: SocketAddr§
transport: StationTransportSignaling(SignalingObservation)
Identified
Disconnected
Trait Implementations§
Source§impl Clone for ServerObservationKind
impl Clone for ServerObservationKind
Source§fn clone(&self) -> ServerObservationKind
fn clone(&self) -> ServerObservationKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerObservationKind
impl RefUnwindSafe for ServerObservationKind
impl Send for ServerObservationKind
impl Sync for ServerObservationKind
impl Unpin for ServerObservationKind
impl UnsafeUnpin for ServerObservationKind
impl UnwindSafe for ServerObservationKind
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