pub struct Volume {
pub name: String,
pub path: String,
pub format: String,
pub kind: String,
pub model: Option<&'static str>,
pub icon: &'static str,
pub ipod_supported: Option<bool>,
pub ejectable: bool,
}Expand description
An OS mount candidate, not a certified music-player model or conversion profile.
Fields§
§name: StringDisplay name derived from the mount path.
path: StringOS-mounted absolute root.
format: StringOS filesystem label.
kind: StringMounted volume, removable drive or network share.
model: Option<&'static str>Optional model established by exact OS USB-to-volume association.
icon: &'static strLocal outline icon; generic drive when the model is unknown.
ipod_supported: Option<bool>Known podkit compatibility; unknown is not a positive compatibility claim.
ejectable: boolThe native OS can safely eject this mounted device.
Implementations§
Trait Implementations§
impl Eq for Volume
impl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnsafeUnpin for Volume
impl UnwindSafe for Volume
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