pub struct Drive {
pub id: String,
pub name: String,
pub disc: Option<Disc>,
pub error: Option<String>,
pub image: bool,
/* private fields */
}Expand description
One discovered optical drive or explicitly selected local image. Device paths remain native and private.
Fields§
§id: StringProcess-local selector accepted by ejection.
name: StringUser-visible device number, not an arbitrary filesystem path.
disc: Option<Disc>Confirmed audio-disc selection, if readable.
error: Option<String>Read failure kept distinct from an empty drive.
image: boolAn explicitly selected CUE/BIN image, closed without a physical eject command.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Drive
impl RefUnwindSafe for Drive
impl Send for Drive
impl Sync for Drive
impl Unpin for Drive
impl UnsafeUnpin for Drive
impl UnwindSafe for Drive
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