pub struct CurrentTrack<'a> {
pub path: &'a Path,
pub size: u64,
pub mtime: u64,
pub mtime_subseconds: u32,
pub tag: Option<&'a str>,
pub sidecar: Option<&'a Path>,
}Expand description
Current catalog evidence for the audio to which lyrics belong.
Paths come from the catalog, never from an HTTP caller. A sidecar must have
the audio file’s basename and parent, with a case-insensitive .lrc suffix.
Precise modification time is required: callers must rescan legacy catalogs
before publishing lyrics associated with an unverified audio identity.
Fields§
§path: &'a PathCatalogued audio path.
size: u64Catalogued audio byte length.
mtime: u64Catalogued modification time in whole seconds.
mtime_subseconds: u32Nanosecond fraction of the catalogued modification time.
tag: Option<&'a str>First lyrics tag, when present; nonempty tag lyrics precede a sidecar.
sidecar: Option<&'a Path>Catalogued lyrics sidecar, when present.
Auto Trait Implementations§
impl<'a> Freeze for CurrentTrack<'a>
impl<'a> RefUnwindSafe for CurrentTrack<'a>
impl<'a> Send for CurrentTrack<'a>
impl<'a> Sync for CurrentTrack<'a>
impl<'a> Unpin for CurrentTrack<'a>
impl<'a> UnwindSafe for CurrentTrack<'a>
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