[−][src]Struct metaflac::block::StreamInfo
A structure representing a STREAMINFO block.
Fields
min_block_size: u16The minimum block size (in samples) used in the stream.
max_block_size: u16The maximum block size (in samples) used in the stream.
min_frame_size: u32The minimum frame size (in bytes) used in the stream.
max_frame_size: u32The maximum frame size (in bytes) used in the stream.
sample_rate: u32Sample rate in Hz.
num_channels: u8Number of channels. FLAC supports from 1 to 8 channels.
bits_per_sample: u8Bits per sample. FLAC supports from 4 to 32 bits per sample.
total_samples: u64Total samples in stream.
md5: Vec<u8>MD5 signature of the unencoded audio data.
Methods
impl StreamInfo[src]
pub fn new() -> StreamInfo[src]
Returns a new StreamInfo with zero/empty values.
pub fn from_bytes(bytes: &[u8]) -> StreamInfo[src]
Parses the bytes as a StreamInfo block.
pub fn to_bytes(&self) -> Vec<u8>[src]
Returns a vector representation of the streaminfo block suitable for writing to a file.
Trait Implementations
impl Clone for StreamInfo[src]
fn clone(&self) -> StreamInfo[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for StreamInfo[src]
impl Eq for StreamInfo[src]
impl PartialEq<StreamInfo> for StreamInfo[src]
fn eq(&self, other: &StreamInfo) -> bool[src]
fn ne(&self, other: &StreamInfo) -> bool[src]
impl StructuralEq for StreamInfo[src]
impl StructuralPartialEq for StreamInfo[src]
Auto Trait Implementations
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnwindSafe for StreamInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,