Struct fm::cryptsetup::CryptoDevice
source · pub struct CryptoDevice { /* private fields */ }Expand description
Represent an encrypted device. Those attributes comes from cryptsetup.
Implementations§
source§impl CryptoDevice
impl CryptoDevice
pub fn mount_point(&self) -> Option<String>
sourcepub fn is_mounted(&self) -> bool
pub fn is_mounted(&self) -> bool
True if there’s a mount point for this drive. It’s only valid if we mounted the device since it requires the uuid to be in the mount point.
Trait Implementations§
source§impl Clone for CryptoDevice
impl Clone for CryptoDevice
source§fn clone(&self) -> CryptoDevice
fn clone(&self) -> CryptoDevice
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 CryptoDevice
impl Debug for CryptoDevice
source§impl Default for CryptoDevice
impl Default for CryptoDevice
source§fn default() -> CryptoDevice
fn default() -> CryptoDevice
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CryptoDevice
impl Send for CryptoDevice
impl Sync for CryptoDevice
impl Unpin for CryptoDevice
impl UnwindSafe for CryptoDevice
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().