pub struct Collection<'a> {
pub collection_path: OwnedObjectPath,
/* private fields */
}Fields§
§collection_path: OwnedObjectPathImplementations§
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(&'a self) -> Result<Vec<Item<'a>>, Error>
pub fn search_items( &'a self, attributes: HashMap<&str, &str>, ) -> Result<Vec<Item<'a>>, Error>
pub fn get_label(&self) -> Result<String, Error>
pub fn set_label(&self, new_label: &str) -> Result<(), Error>
pub fn create_item( &'a self, label: &str, attributes: HashMap<&str, &str>, secret: &[u8], replace: bool, content_type: &str, ) -> Result<Item<'a>, 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