#[non_exhaustive]pub enum ForwardableFrame<'a> {
Header {
protocol: ProtocolKind,
stream_id: StreamId,
bytes: &'a [u8],
},
Data {
protocol: ProtocolKind,
stream_id: StreamId,
seq: u8,
bytes: &'a [u8],
},
Eot {
protocol: ProtocolKind,
stream_id: StreamId,
seq: u8,
bytes: &'a [u8],
},
}Expand description
A voice frame ready to be forwarded to other connected clients.
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.
Header
Voice header (first packet of a stream).
Fields
§
protocol: ProtocolKindProtocol of the originating client.
Data
Voice data frame (middle of a stream).
Fields
§
protocol: ProtocolKindProtocol of the originating client.
Eot
Voice EOT (final packet of a stream).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ForwardableFrame<'a>
impl<'a> Clone for ForwardableFrame<'a>
Source§fn clone(&self) -> ForwardableFrame<'a>
fn clone(&self) -> ForwardableFrame<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ForwardableFrame<'a>
impl<'a> Debug for ForwardableFrame<'a>
impl<'a> Copy for ForwardableFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for ForwardableFrame<'a>
impl<'a> RefUnwindSafe for ForwardableFrame<'a>
impl<'a> Send for ForwardableFrame<'a>
impl<'a> Sync for ForwardableFrame<'a>
impl<'a> Unpin for ForwardableFrame<'a>
impl<'a> UnwindSafe for ForwardableFrame<'a>
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