pub struct Drive {
pub serial: Option<Vec<u8>>,
pub volume: Option<Vec<u8>>,
pub folder_ids: bool,
pub system: bool,
pub remote: bool,
pub cloud: bool,
pub unjournaled: bool,
pub disk: Option<Vec<u8>>,
}Expand description
A drive, as the system reports it.
Fields§
§serial: Option<Vec<u8>>The serial of its file system, if the system reads one.
volume: Option<Vec<u8>>On FAT and exFAT, the volume’s UUID as macOS makes it from the serial, which macOS reads in place of the serial, and other systems make alike where they can.
folder_ids: boolWhether its file system keeps IDs of folders that a move keeps, as all but FAT and exFAT do.
system: boolWhether the system runs from it.
remote: boolWhether its file system is on another computer, as a network drive’s is.
cloud: boolWhether a program may take its files’ content away to the cloud, as the folders of Windows’ cloud files and macOS’s File Provider are.
unjournaled: boolWhether its file system keeps no journal, as FAT, exFAT and ext2: a removal without unmounting can leave it inconsistent until it is checked (technical design: drives without a journal).
disk: Option<Vec<u8>>The physical drive’s own name, as its partition table gives it, if declared: the system’s is read only when asked, as copies are counted.
Trait Implementations§
impl Eq for Drive
impl StructuralPartialEq for Drive
Auto Trait Implementations§
impl Forget for Drive
impl Freeze for Drive
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.