pub struct StreamStartPlayer {
pub codec: String,
pub sample_rate: u32,
pub channels: u8,
pub bit_depth: u8,
pub codec_header: Option<String>,
}Expand description
The player object of StreamStart: the negotiated audio format of a stream.
Fields§
§codec: StringCodec of the stream: opus, flac or pcm.
sample_rate: u32Sample rate in hertz.
channels: u8Number of channels.
bit_depth: u8Bit depth; ignored for opus.
codec_header: Option<String>Codec header as standard base64 with padding, for example the fLaC marker followed by
STREAMINFO for FLAC; absent for pcm and opus.
Trait Implementations§
Source§impl Clone for StreamStartPlayer
impl Clone for StreamStartPlayer
Source§impl Debug for StreamStartPlayer
impl Debug for StreamStartPlayer
Source§impl<'de> Deserialize<'de> for StreamStartPlayer
impl<'de> Deserialize<'de> for StreamStartPlayer
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 StreamStartPlayer
Source§impl PartialEq for StreamStartPlayer
impl PartialEq for StreamStartPlayer
Source§impl Serialize for StreamStartPlayer
impl Serialize for StreamStartPlayer
impl StructuralPartialEq for StreamStartPlayer
Auto Trait Implementations§
impl Forget for StreamStartPlayer
impl Freeze for StreamStartPlayer
impl Move for StreamStartPlayer
impl RefUnwindSafe for StreamStartPlayer
impl Send for StreamStartPlayer
impl Sync for StreamStartPlayer
impl Unpin for StreamStartPlayer
impl UnsafeUnpin for StreamStartPlayer
impl UnwindSafe for StreamStartPlayer
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