#[non_exhaustive]pub enum PublishTrack {
Video {
width: u16,
height: u16,
avc_config: Vec<u8>,
},
Audio {
sample_rate: u32,
channel_count: u16,
asc: Vec<u8>,
},
}Expand description
One track a publish describes, as the opening messages state it.
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.
Video
An AVC video track: coded size and its avcC.
Fields
Audio
An AAC audio track: its sample rate, channel count and its
AudioSpecificConfig.
Trait Implementations§
Source§impl Clone for PublishTrack
impl Clone for PublishTrack
Source§impl Debug for PublishTrack
impl Debug for PublishTrack
Source§impl<'de> Deserialize<'de> for PublishTrack
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PublishTrack
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PublishTrack
Source§impl PartialEq for PublishTrack
impl PartialEq for PublishTrack
Source§impl Serialize for PublishTrack
Available on crate feature serde only.
impl Serialize for PublishTrack
Available on crate feature
serde only.impl StructuralPartialEq for PublishTrack
Auto Trait Implementations§
impl Forget for PublishTrack
impl Freeze for PublishTrack
impl Move for PublishTrack
impl RefUnwindSafe for PublishTrack
impl Send for PublishTrackwhere
RawVecInner: Send,
impl Sync for PublishTrackwhere
RawVecInner: Sync,
impl Unpin for PublishTrack
impl UnsafeUnpin for PublishTrack
impl UnwindSafe for PublishTrackwhere
RawVecInner: UnwindSafe,
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