Skip to main content

Disc

Struct Disc 

Source
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: String

Opaque in-process identity, never a device path.

§tracks: Vec<Track>

Audio tracks only; data tracks never enter the playback queue.

Implementations§

Source§

impl Disc

Source

pub fn title(&self) -> Option<&str>

Selected image title; physical-disc metadata remains unidentified.

Source

pub fn performer(&self) -> Option<&str>

Explicit CUE performer, never a resolved catalogue/account identity.

Source

pub fn track_names(&self, number: u8) -> (Option<&str>, Option<&str>)

CUE track title and performer when supplied.

Source

pub fn reference(&self, number: u8) -> String

Stable physical position within this process-only disc selection.

Source

pub fn track(&self, reference: &str) -> Result<&Track, String>

Resolve only this selection’s audio tracks, never a file or another device.

Source

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§

Source§

impl Clone for Disc

Source§

fn clone(&self) -> Disc

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

§

fn into_sample(self) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.