pub struct Track {
pub number: u32,
pub start_ts: u64,
pub end_ts: u64,
pub tags: Vec<Tag>,
pub visuals: Vec<Visual>,
/* private fields */
}Expand description
Metadata identifying a track in a FLAC file that has an embedded CUE sheet.
Fields§
§number: u32§start_ts: u64§end_ts: u64§visuals: Vec<Visual>Implementations§
Source§impl Track
impl Track
Create a Track from a file’s embedded FLAC&vorbis comments and CUE sheet.
Sourcepub fn tag_value(&self, name: &str) -> Option<&Value>
pub fn tag_value(&self, name: &str) -> Option<&Value>
Return the tag value for a given tag name.
Sourcepub fn write_metadata<S: Write>(
&self,
total_samples: u64,
metadata_padding: u32,
to: S,
) -> Result<()>
pub fn write_metadata<S: Write>( &self, total_samples: u64, metadata_padding: u32, to: S, ) -> Result<()>
Write a track’s STREAM metadata blocks - first STREAMINFO, then the remainder containing pictures and vorbis comments.
Sourcepub fn write_audio<S: Write>(&self, from: &mut FlacReader, to: S) -> Result<u64>
pub fn write_audio<S: Write>(&self, from: &mut FlacReader, to: S) -> Result<u64>
Write a STREAM’s FRAME sequence, containing compressed audio samples. Returns the number of samples actually processed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl UnwindSafe for Track
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> SignExtend<T> for T
impl<T> SignExtend<T> for T
Source§fn sign_extend(self) -> T
fn sign_extend(self) -> T
Sign extends this type
Source§impl<T> SignExtended for T
impl<T> SignExtended for T
Source§fn sign_extended<T>(self) -> Twhere
Self: SignExtend<T>,
fn sign_extended<T>(self) -> Twhere
Self: SignExtend<T>,
Sign extends this type
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> ZeroExtend<T> for T
impl<T> ZeroExtend<T> for T
Source§fn zero_extend(self) -> T
fn zero_extend(self) -> T
Zero extends this type
Source§impl<T> ZeroExtended for T
impl<T> ZeroExtended for T
Source§fn zero_extended<T>(self) -> Twhere
Self: ZeroExtend<T>,
fn zero_extended<T>(self) -> Twhere
Self: ZeroExtend<T>,
Zero extends this type