#[non_exhaustive]pub enum ClientEvent {
Connected {
id: SessionId,
transport: &'static str,
peer: SocketAddr,
},
Fallback {
id: SessionId,
from: &'static str,
to: &'static str,
},
ReconnectBackoff {
id: SessionId,
attempt: u32,
delay: Duration,
},
KeepAliveFailed {
id: SessionId,
consecutive: u32,
},
Redirect {
id: SessionId,
location: String,
},
Failed {
id: SessionId,
code: ErrorCode,
},
Closed {
id: SessionId,
elapsed: Duration,
error: Option<ErrorCode>,
},
}Expand description
RTSP client lifecycle events (receive/play sessions).
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.
Trait Implementations§
Source§impl Clone for ClientEvent
impl Clone for ClientEvent
Auto Trait Implementations§
impl Forget for ClientEvent
impl Freeze for ClientEvent
impl Move for ClientEvent
impl RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEventwhere
RawVecInner: Sync,
impl Unpin for ClientEvent
impl UnsafeUnpin for ClientEvent
impl UnwindSafe for ClientEvent
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