pub struct Library { /* private fields */ }Expand description
Bounded source registry; optical discovery is confined to the scan operation.
Implementations§
Source§impl Library
impl Library
Sourcepub fn snapshot(&self) -> &[Drive]
pub fn snapshot(&self) -> &[Drive]
Last successful explicit discovery, without disk/network I/O.
Sourcepub fn scan(&mut self) -> Result<&[Drive], String>
pub fn scan(&mut self) -> Result<&[Drive], String>
Enumerate and inspect at most sixteen optical drives. Existing tokens survive an unchanged TOC.
Sourcepub fn open_image(&mut self, path: &Path) -> Result<String, String>
pub fn open_image(&mut self, path: &Path) -> Result<String, String>
Open a selected audio CUE/BIN image transactionally, retaining at most one image.
Sourcepub fn refresh_image(&mut self, id: &str) -> Result<bool, String>
pub fn refresh_image(&mut self, id: &str) -> Result<bool, String>
Reload only the selected image, without enumerating or touching physical readers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnsafeUnpin for Library
impl UnwindSafe for Library
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