pub struct CodecParameters {
pub codec: Codec,
pub sample_rate: u32,
pub sample_format: Option<SampleFormat>,
pub bits_per_sample: Option<u32>,
pub bits_per_coded_sample: Option<u32>,
pub channels: usize,
pub max_frames_per_packet: Option<u64>,
pub frames_per_block: Option<u64>,
}Fields§
§codec: Codec§sample_rate: u32§sample_format: Option<SampleFormat>§bits_per_sample: Option<u32>§bits_per_coded_sample: Option<u32>§channels: usize§max_frames_per_packet: Option<u64>§frames_per_block: Option<u64>Trait Implementations§
Source§impl Clone for CodecParameters
impl Clone for CodecParameters
Source§fn clone(&self) -> CodecParameters
fn clone(&self) -> CodecParameters
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 Debug for CodecParameters
impl Debug for CodecParameters
Source§impl<'de> Deserialize<'de> for CodecParameters
impl<'de> Deserialize<'de> for CodecParameters
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
Source§impl PartialEq for CodecParameters
impl PartialEq for CodecParameters
Source§impl Serialize for CodecParameters
impl Serialize for CodecParameters
Source§impl TryFrom<&AudioCodecParameters> for CodecParameters
impl TryFrom<&AudioCodecParameters> for CodecParameters
Source§type Error = ContainerError
type Error = ContainerError
The type returned in the event of a conversion error.
impl Copy for CodecParameters
impl StructuralPartialEq for CodecParameters
Auto Trait Implementations§
impl Freeze for CodecParameters
impl RefUnwindSafe for CodecParameters
impl Send for CodecParameters
impl Sync for CodecParameters
impl Unpin for CodecParameters
impl UnsafeUnpin for CodecParameters
impl UnwindSafe for CodecParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more