pub struct Item<'a> {
pub item_path: OwnedObjectPath,
/* private fields */
}Fields§
§item_path: OwnedObjectPathImplementations§
Source§impl<'a> Item<'a>
impl<'a> Item<'a>
pub async fn is_locked(&self) -> Result<bool, Error>
pub async fn ensure_unlocked(&self) -> Result<(), Error>
pub async fn unlock(&self) -> Result<(), Error>
pub async fn lock(&self) -> Result<(), Error>
pub async fn get_attributes(&self) -> Result<HashMap<String, String>, Error>
pub async fn set_attributes( &self, attributes: HashMap<&str, &str>, ) -> Result<(), Error>
pub async fn get_label(&self) -> Result<String, Error>
pub async fn set_label(&self, new_label: &str) -> Result<(), Error>
Sourcepub async fn delete(&self) -> Result<(), Error>
pub async fn delete(&self) -> Result<(), Error>
Deletes dbus object, but struct instance still exists (current implementation)
pub async fn get_secret(&self) -> Result<Vec<u8>, Error>
pub async fn get_secret_content_type(&self) -> Result<String, Error>
pub async fn set_secret( &self, secret: &[u8], content_type: &str, ) -> Result<(), Error>
pub async fn get_created(&self) -> Result<u64, Error>
pub async fn get_modified(&self) -> Result<u64, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Item<'a>
impl<'a> !RefUnwindSafe for Item<'a>
impl<'a> Send for Item<'a>
impl<'a> Sync for Item<'a>
impl<'a> Unpin for Item<'a>
impl<'a> !UnwindSafe for Item<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more