Struct dbus_udisks2::UDisks2
source · pub struct UDisks2 { /* private fields */ }
Implementations§
source§impl UDisks2
impl UDisks2
pub fn new() -> Result<Self, Error>
sourcepub fn update(&mut self) -> Result<(), Error>
pub fn update(&mut self) -> Result<(), Error>
Refresh the managed objects fetched from the DBus server.
sourcepub fn get_drive(&self, path: &str) -> Option<Drive>
pub fn get_drive(&self, path: &str) -> Option<Drive>
Find the drive that corresponds to the given dbus object path.
sourcepub fn get_drives<'a>(&'a self) -> impl Iterator<Item = Drive> + 'a
pub fn get_drives<'a>(&'a self) -> impl Iterator<Item = Drive> + 'a
An iterator of Drive
objects fetched from the inner cached managed objects.
sourcepub fn get_block(&self, path: &str) -> Option<Block>
pub fn get_block(&self, path: &str) -> Option<Block>
Find the block that corresponds to the given dbus object path.
sourcepub fn get_blocks<'a>(&'a self) -> impl Iterator<Item = Block> + 'a
pub fn get_blocks<'a>(&'a self) -> impl Iterator<Item = Block> + 'a
An iterator of Block
objects fetched from the inner cached managed objects.