pub struct StreamInfo {
pub min_block: u16,
pub max_block: u16,
pub sample_rate: u32,
pub channels: u8,
pub bits_per_sample: u8,
pub total_samples: u64,
}Expand description
The STREAMINFO metadata block.
Fields§
§min_block: u16Smallest block size in the stream, in samples.
max_block: u16Largest block size in the stream, in samples.
sample_rate: u32Samples per second.
channels: u8Channel count, 1 to 8.
bits_per_sample: u8Bits per sample, 4 to 32.
total_samples: u64Samples per channel, or 0 when the encoder did not know.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§impl Debug for StreamInfo
impl Debug for StreamInfo
impl Eq for StreamInfo
Source§impl PartialEq for StreamInfo
impl PartialEq for StreamInfo
impl StructuralPartialEq for StreamInfo
Auto Trait Implementations§
impl Forget for StreamInfo
impl Freeze for StreamInfo
impl Move for StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnsafeUnpin for StreamInfo
impl UnwindSafe for StreamInfo
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<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