#[non_exhaustive]pub enum SessionEvent {
Accepted {
id: SessionId,
peer: SocketAddr,
},
Rejected {
peer: SocketAddr,
reason: RejectReason,
},
Closed {
id: SessionId,
peer: SocketAddr,
elapsed: Duration,
error: Option<ErrorCode>,
},
PlaybackStopped {
peer: SocketAddr,
mount: MountId,
elapsed: Duration,
},
}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.
Accepted
Rejected
Closed
PlaybackStopped
A playback session ended (TEARDOWN, PAUSE or disconnect) after having
played mount. Emitted once per distinct mount a session played.
Trait Implementations§
Source§impl Clone for SessionEvent
impl Clone for SessionEvent
Auto Trait Implementations§
impl Forget for SessionEvent
impl Freeze for SessionEvent
impl Move for SessionEvent
impl RefUnwindSafe for SessionEvent
impl Send for SessionEvent
impl Sync for SessionEvent
impl Unpin for SessionEvent
impl UnsafeUnpin for SessionEvent
impl UnwindSafe for SessionEvent
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