[−][src]Struct secret_service::Item
Fields
item_path: Path
Methods
impl<'a> Item<'a>
[src]
pub fn new(bus: Rc<Connection>, session: &'a Session, item_path: Path) -> Self
[src]
pub fn is_locked(&self) -> Result<bool>
[src]
pub fn ensure_unlocked(&self) -> Result<()>
[src]
pub fn unlock(&self) -> Result<()>
[src]
pub fn lock(&self) -> Result<()>
[src]
pub fn get_attributes(&self) -> Result<Vec<(String, String)>>
[src]
pub fn set_attributes(&self, attributes: Vec<(&str, &str)>) -> Result<()>
[src]
pub fn get_label(&self) -> Result<String>
[src]
pub fn set_label(&self, new_label: &str) -> Result<()>
[src]
pub fn delete(&self) -> Result<()>
[src]
Deletes dbus object, but struct instance still exists (current implementation)
pub fn get_secret(&self) -> Result<Vec<u8>>
[src]
pub fn get_secret_content_type(&self) -> Result<String>
[src]
pub fn set_secret(&self, secret: &[u8], content_type: &str) -> Result<()>
[src]
pub fn get_created(&self) -> Result<u64>
[src]
pub fn get_modified(&self) -> Result<u64>
[src]
Trait Implementations
impl<'a> Debug for Item<'a>
[src]
impl<'a> Eq for Item<'a>
[src]
impl<'a> PartialEq<Item<'a>> for Item<'a>
[src]
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,