Struct dbus_udisks2::Block

source ·
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>,
}

Fields§

§crypto_backing_device: String§device_number: u64§device: PathBuf§drive: String§encrypted: Option<Encrypted>§hint_auto: bool§hint_icon_name: Option<String>§hint_ignore: bool§hint_name: Option<String>§hint_partitionable: bool§hint_symbolic_icon_name: Option<String>§hint_system: bool§id_label: Option<String>§id_type: Option<String>§id_usage: Option<String>§id_uuid: Option<String>§id_version: Option<String>§id: String§loopback: bool§mdraid: PathBuf§mdraid_member: PathBuf§mount_points: Vec<PathBuf>§partition: Option<Partition>§path: String§preferred_device: PathBuf§read_only: bool§size: u64§swapspace: Option<bool>§symlinks: Vec<PathBuf>§table: Option<PartitionTable>§userspace_mount_options: Vec<String>§configuration: Option<BlockConfiguration>

Implementations§

This will be true if this block contains an encrypted volume.

If this block contains an encrypted volume, find the block associated with it.

Trait Implementations§

Returns a copy of the value. Read more
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

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. 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.