Enum block_utils::DeviceType
source · pub enum DeviceType {
Disk,
Partition,
Unknown,
}Expand description
What type of device has been detected.
Variants§
Trait Implementations§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DeviceType
impl Debug for DeviceType
source§impl Display for DeviceType
impl Display for DeviceType
source§impl<'_derivative_strum> From<&'_derivative_strum DeviceType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum DeviceType> for &'static str
source§fn from(x: &'_derivative_strum DeviceType) -> &'static str
fn from(x: &'_derivative_strum DeviceType) -> &'static str
Converts to this type from the input type.
source§impl From<DeviceType> for &'static str
impl From<DeviceType> for &'static str
source§fn from(x: DeviceType) -> &'static str
fn from(x: DeviceType) -> &'static str
Converts to this type from the input type.
source§impl FromStr for DeviceType
impl FromStr for DeviceType
source§impl PartialEq<DeviceType> for DeviceType
impl PartialEq<DeviceType> for DeviceType
source§fn eq(&self, other: &DeviceType) -> bool
fn eq(&self, other: &DeviceType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.