[][src]Struct secret_service::Collection

pub struct Collection<'a> {
    pub collection_path: Path,
    // some fields omitted
}

Fields

collection_path: Path

Methods

impl<'a> Collection<'a>[src]

pub fn new(
    bus: Rc<Connection>,
    session: &'a Session,
    collection_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 delete(&self) -> Result<()>[src]

Deletes dbus object, but struct instance still exists (current implementation)

pub fn get_all_items(&self) -> Result<Vec<Item>>[src]

pub fn search_items(&self, attributes: Vec<(&str, &str)>) -> Result<Vec<Item>>[src]

pub fn get_label(&self) -> Result<String>[src]

pub fn set_label(&self, new_label: &str) -> Result<()>[src]

pub fn create_item(
    &self,
    label: &str,
    attributes: Vec<(&str, &str)>,
    secret: &[u8],
    replace: bool,
    content_type: &str
) -> Result<Item>
[src]

Trait Implementations

impl<'a> Clone for Collection<'a>[src]

impl<'a> Debug for Collection<'a>[src]

Auto Trait Implementations

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

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.