#[non_exhaustive]pub enum StreamEventKind {
PublishStarted,
PublishEnded,
SubscriberJoined {
protocol: String,
},
SubscriberLeft {
protocol: String,
},
RecordingStarted,
RecordingEnded,
TranscodeStarted,
TranscodeEnded,
Error {
message: String,
},
}Expand description
The kind of a StreamEvent. #[non_exhaustive] — match with a wildcard.
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.
PublishStarted
A publisher claimed the stream and began publishing.
PublishEnded
The publisher released the stream.
SubscriberJoined
A subscriber connected.
SubscriberLeft
A subscriber disconnected.
RecordingStarted
Recording of the stream began.
RecordingEnded
Recording of the stream ended.
TranscodeStarted
Transcoding of the stream began.
TranscodeEnded
Transcoding of the stream ended.
Error
An error occurred for the stream.
Trait Implementations§
Source§impl Clone for StreamEventKind
impl Clone for StreamEventKind
Source§fn clone(&self) -> StreamEventKind
fn clone(&self) -> StreamEventKind
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 moreSource§impl Debug for StreamEventKind
impl Debug for StreamEventKind
impl Eq for StreamEventKind
Source§impl PartialEq for StreamEventKind
impl PartialEq for StreamEventKind
Source§fn eq(&self, other: &StreamEventKind) -> bool
fn eq(&self, other: &StreamEventKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamEventKind
Auto Trait Implementations§
impl Freeze for StreamEventKind
impl RefUnwindSafe for StreamEventKind
impl Send for StreamEventKind
impl Sync for StreamEventKind
impl Unpin for StreamEventKind
impl UnsafeUnpin for StreamEventKind
impl UnwindSafe for StreamEventKind
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