pub struct Block {Show 32 fields
pub crypto_backing_device: String,
pub device_number: u64,
pub device: PathBuf,
pub drive: String,
pub encrypted: Option<Encrypted>,
pub hint_auto: bool,
pub hint_icon_name: Option<String>,
pub hint_ignore: bool,
pub hint_name: Option<String>,
pub hint_partitionable: bool,
pub hint_symbolic_icon_name: Option<String>,
pub hint_system: bool,
pub id_label: Option<String>,
pub id_type: Option<String>,
pub id_usage: Option<String>,
pub id_uuid: Option<String>,
pub id_version: Option<String>,
pub id: String,
pub loopback: bool,
pub mdraid: PathBuf,
pub mdraid_member: PathBuf,
pub mount_points: Vec<PathBuf>,
pub partition: Option<Partition>,
pub path: String,
pub preferred_device: PathBuf,
pub read_only: bool,
pub size: u64,
pub swapspace: Option<bool>,
pub symlinks: Vec<PathBuf>,
pub table: Option<PartitionTable>,
pub userspace_mount_options: Vec<String>,
pub configuration: Option<BlockConfiguration>,
}
This will be true if this block contains an encrypted volume.
If this block contains an encrypted volume, find the block associated with it.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.