Struct secret_service::blocking::Item
source · pub struct Item<'a> {
pub item_path: OwnedObjectPath,
/* private fields */
}
Fields§
§item_path: OwnedObjectPath
Implementations§
source§impl<'a> Item<'a>
impl<'a> Item<'a>
pub fn is_locked(&self) -> Result<bool, Error>
pub fn ensure_unlocked(&self) -> Result<(), Error>
pub fn unlock(&self) -> Result<(), Error>
pub fn lock(&self) -> Result<(), Error>
pub fn get_attributes(&self) -> Result<HashMap<String, String>, Error>
pub fn set_attributes( &self, attributes: HashMap<&str, &str>, ) -> Result<(), Error>
pub fn get_label(&self) -> Result<String, Error>
pub fn set_label(&self, new_label: &str) -> Result<(), Error>
sourcepub fn delete(&self) -> Result<(), Error>
pub fn delete(&self) -> Result<(), Error>
Deletes dbus object, but struct instance still exists (current implementation)
pub fn get_secret(&self) -> Result<Vec<u8>, Error>
pub fn get_secret_content_type(&self) -> Result<String, Error>
pub fn set_secret(&self, secret: &[u8], content_type: &str) -> Result<(), Error>
pub fn get_created(&self) -> Result<u64, Error>
pub fn get_modified(&self) -> Result<u64, Error>
Trait Implementations§
source§impl<'a> PartialEq for Item<'a>
impl<'a> PartialEq for Item<'a>
impl<'a> Eq for Item<'a>
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