pub struct StreamInfo {
pub min_block_size: u16,
pub max_block_size: u16,
pub min_frame_size: u32,
pub max_frame_size: u32,
pub sample_rate: u32,
pub channels: u8,
pub bits_per_sample: u8,
pub total_samples: u64,
pub md5: [u8; 16],
}Expand description
The contents of the STREAMINFO metadata block.
Fields§
§min_block_size: u16§max_block_size: u16§min_frame_size: u32§max_frame_size: u32§sample_rate: u32§channels: u8§bits_per_sample: u8§total_samples: u64Total samples per channel. Zero means the encoder did not record it.
md5: [u8; 16]MD5 of the unencoded samples, or all zero if not recorded.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§fn clone(&self) -> StreamInfo
fn clone(&self) -> StreamInfo
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 moreSource§impl Debug for StreamInfo
impl Debug for StreamInfo
impl Eq for StreamInfo
Source§impl PartialEq for StreamInfo
impl PartialEq for StreamInfo
Source§fn eq(&self, other: &StreamInfo) -> bool
fn eq(&self, other: &StreamInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamInfo
Auto Trait Implementations§
impl Freeze 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