Struct dbus_udisks2::block::Block [−][src]
pub struct Block { pub crypto_backing_device: String, pub device_number: u64, pub device: String, 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: Option<String>, pub mdraid_member: Option<String>, pub mount_points: Option<Vec<String>>, pub partition: Option<Partition>, pub path: String, pub preferred_device: String, pub read_only: bool, pub size: u64, pub swapspace: Option<bool>, pub symlinks: Option<Vec<String>>, pub table: Option<PartitionTable>, pub userspace_mount_options: Option<Vec<String>>, }
Fields
crypto_backing_device: String
device_number: u64
device: String
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: Option<String>
mdraid_member: Option<String>
mount_points: Option<Vec<String>>
partition: Option<Partition>
path: String
preferred_device: String
read_only: bool
size: u64
swapspace: Option<bool>
symlinks: Option<Vec<String>>
table: Option<PartitionTable>
userspace_mount_options: Option<Vec<String>>
Methods
impl Block
[src]
impl Block
pub fn is_encrypted(&self) -> bool
[src]
pub fn is_encrypted(&self) -> bool
This will be true if this block contains an encrypted volume.
pub fn get_encrypted_block<'a>(&self, within: &'a [Block]) -> Option<&'a Block>
[src]
pub fn get_encrypted_block<'a>(&self, within: &'a [Block]) -> Option<&'a Block>
If this block contains an encrypted volume, find the block associated with it.
Trait Implementations
impl Clone for Block
[src]
impl Clone for Block
fn clone(&self) -> Block
[src]
fn clone(&self) -> Block
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Block
[src]
impl Debug for Block
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Block
[src]
impl Default for Block