#[non_exhaustive]pub enum StreamEndReason {
End,
RoleRemoved,
}Expand description
Why a player stream ended.
A seek is not an end: the stream stays open and later chunks still belong to it, so it is
reported as Event::StreamClear instead.
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.
End
The server sent stream/end, which pauses playback.
RoleRemoved
The server removed player@v1 from the active roles.
Trait Implementations§
Source§impl Clone for StreamEndReason
impl Clone for StreamEndReason
impl Copy for StreamEndReason
Source§impl Debug for StreamEndReason
impl Debug for StreamEndReason
impl Eq for StreamEndReason
Source§impl PartialEq for StreamEndReason
impl PartialEq for StreamEndReason
impl StructuralPartialEq for StreamEndReason
Auto Trait Implementations§
impl Forget for StreamEndReason
impl Freeze for StreamEndReason
impl Move for StreamEndReason
impl RefUnwindSafe for StreamEndReason
impl Send for StreamEndReason
impl Sync for StreamEndReason
impl Unpin for StreamEndReason
impl UnsafeUnpin for StreamEndReason
impl UnwindSafe for StreamEndReason
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