pub struct Collection<'a> {
pub collection_path: OwnedObjectPath,
/* private fields */
}Fields§
§collection_path: OwnedObjectPathImplementations§
Source§impl<'a> Collection<'a>
impl<'a> Collection<'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>
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_all_items(&self) -> Result<Vec<Item<'_>>, Error>
pub async fn search_items( &self, attributes: HashMap<&str, &str>, ) -> Result<Vec<Item<'_>>, Error>
pub async fn get_label(&self) -> Result<String, Error>
pub async fn set_label(&self, new_label: &str) -> Result<(), Error>
pub async 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