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
sourceimpl Block
impl Block
sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
This will be true if this block contains an encrypted volume.
sourcepub fn get_encrypted_block<'a>(&self, within: &'a [Block]) -> Option<&'a Block>
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
Auto Trait Implementations
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more