pub struct Disc {
pub token: String,
pub tracks: Vec<Track>,
/* private fields */
}Expand description
Session-only selection. Its token is not a catalogue identity or metadata assertion.
Fields§
§token: StringOpaque in-process identity, never a device path.
tracks: Vec<Track>Audio tracks only; data tracks never enter the playback queue.
Implementations§
Source§impl Disc
impl Disc
Sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
Selected image title; physical-disc metadata remains unidentified.
Sourcepub fn performer(&self) -> Option<&str>
pub fn performer(&self) -> Option<&str>
Explicit CUE performer, never a resolved catalogue/account identity.
Sourcepub fn track_names(&self, number: u8) -> (Option<&str>, Option<&str>)
pub fn track_names(&self, number: u8) -> (Option<&str>, Option<&str>)
CUE track title and performer when supplied.
Sourcepub fn reference(&self, number: u8) -> String
pub fn reference(&self, number: u8) -> String
Stable physical position within this process-only disc selection.
Sourcepub fn track(&self, reference: &str) -> Result<&Track, String>
pub fn track(&self, reference: &str) -> Result<&Track, String>
Resolve only this selection’s audio tracks, never a file or another device.
Sourcepub fn with_stream<T>(
&self,
number: u8,
current: impl Fn() -> bool,
work: impl FnOnce(&mut TrackReader<'_>) -> Result<T, String>,
) -> Result<T, String>
pub fn with_stream<T>( &self, number: u8, current: impl Fn() -> bool, work: impl FnOnce(&mut TrackReader<'_>) -> Result<T, String>, ) -> Result<T, String>
Hold one source operation at a time; recheck an optical TOC or read retained image handles. The callback runs on the caller’s I/O worker, never on the audio callback.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Disc
impl RefUnwindSafe for Disc
impl Send for Disc
impl Sync for Disc
impl Unpin for Disc
impl UnsafeUnpin for Disc
impl UnwindSafe for Disc
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