Struct secret_service::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 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)