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