Enum block_utils::DeviceType
source · [−]pub enum DeviceType {
Disk,
Partition,
Unknown,
}Expand description
What type of device has been detected.
Variants
Disk
Partition
Unknown
Trait Implementations
sourceimpl Clone for DeviceType
impl Clone for DeviceType
sourcefn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DeviceType
impl Debug for DeviceType
sourceimpl Display for DeviceType
impl Display for DeviceType
sourceimpl<'_derivative_strum> From<&'_derivative_strum DeviceType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum DeviceType> for &'static str
sourcefn from(x: &'_derivative_strum DeviceType) -> &'static str
fn from(x: &'_derivative_strum DeviceType) -> &'static str
Performs the conversion.
sourceimpl From<DeviceType> for &'static str
impl From<DeviceType> for &'static str
sourcefn from(x: DeviceType) -> &'static str
fn from(x: DeviceType) -> &'static str
Performs the conversion.
sourceimpl FromStr for DeviceType
impl FromStr for DeviceType
sourceimpl PartialEq<DeviceType> for DeviceType
impl PartialEq<DeviceType> for DeviceType
impl Eq for DeviceType
impl StructuralEq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more