#[non_exhaustive]pub enum StreamEncapsulation {
Unspecified,
MpegTsUdp,
MpegTsSrt,
Reserved(u8),
}Expand description
SE: stream encapsulation (draft-sharabayko-srt-01 §3.2.2).
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.
Unspecified
0: unspecified, or a KEKI-indexed crypto context.
MpegTsUdp
1: MPEG-TS/UDP.
MpegTsSrt
2: MPEG-TS/SRT.
Reserved(u8)
A value not defined above.
Implementations§
Trait Implementations§
Source§impl Clone for StreamEncapsulation
impl Clone for StreamEncapsulation
Source§fn clone(&self) -> StreamEncapsulation
fn clone(&self) -> StreamEncapsulation
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 moreimpl Copy for StreamEncapsulation
Source§impl Debug for StreamEncapsulation
impl Debug for StreamEncapsulation
Source§impl Display for StreamEncapsulation
impl Display for StreamEncapsulation
impl Eq for StreamEncapsulation
Source§impl Hash for StreamEncapsulation
impl Hash for StreamEncapsulation
Source§impl PartialEq for StreamEncapsulation
impl PartialEq for StreamEncapsulation
Source§impl Serialize for StreamEncapsulation
Available on crate feature serde only.
impl Serialize for StreamEncapsulation
Available on crate feature
serde only.impl StructuralPartialEq for StreamEncapsulation
Auto Trait Implementations§
impl Freeze for StreamEncapsulation
impl RefUnwindSafe for StreamEncapsulation
impl Send for StreamEncapsulation
impl Sync for StreamEncapsulation
impl Unpin for StreamEncapsulation
impl UnsafeUnpin for StreamEncapsulation
impl UnwindSafe for StreamEncapsulation
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