Struct secret_service::blocking::Collection
source · pub struct Collection<'a> {
pub collection_path: OwnedObjectPath,
/* private fields */
}
Fields§
§collection_path: OwnedObjectPath
Implementations§
source§impl<'a> Collection<'a>
impl<'a> Collection<'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>
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_all_items(&self) -> Result<Vec<Item<'_>>, Error>
pub fn search_items( &self, attributes: HashMap<&str, &str>, ) -> Result<Vec<Item<'_>>, Error>
pub fn get_label(&self) -> Result<String, Error>
pub fn set_label(&self, new_label: &str) -> Result<(), Error>
pub fn create_item( &self, label: &str, attributes: HashMap<&str, &str>, secret: &[u8], replace: bool, content_type: &str, ) -> Result<Item<'_>, Error>
Auto Trait Implementations§
impl<'a> Freeze for Collection<'a>
impl<'a> !RefUnwindSafe for Collection<'a>
impl<'a> Send for Collection<'a>
impl<'a> Sync for Collection<'a>
impl<'a> Unpin for Collection<'a>
impl<'a> !UnwindSafe for Collection<'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