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>
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
source§impl MountHelper for CryptoDevice
impl MountHelper for CryptoDevice
source§fn is_mounted(&self) -> bool
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.
source§fn format_mkdir_parameters(&self, username: &str) -> [String; 3]
fn format_mkdir_parameters(&self, username: &str) -> [String; 3]
Parameters used to
sudo mkdir mountpointsource§fn format_mount_parameters(&mut self, username: &str) -> Vec<String>
fn format_mount_parameters(&mut self, username: &str) -> Vec<String>
Parameters used to mount the device