[][src]Struct secret_service::Item

pub struct Item<'a> {
    pub item_path: Path,
    // some fields omitted
}

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.