Enum oo7::Keyring

source ·
pub enum Keyring {
    // some variants omitted
}
Expand description

A Secret Service or file backed keyring implementation.

It will automatically use the file backend if the application is sandboxed and otherwise falls back to the DBus service.

The File backend requires a org.freedesktop.portal.Secret implementation to retrieve the key that will be used to encrypt the backend file.

Implementations§

Create a new instance of the Keyring.

Unlock the used collection if using the Secret service.

The method does nothing if keyring is backed by a file backend.

Lock the used collection if using the Secret service.

The method does nothing if keyring is backed by a file backend.

Remove items that matches the attributes.

Retrieve all the items.

If using the Secret Service, it will retrieve all the items in the DEFAULT_COLLECTION.

Create a new item.

Find items based on their attributes.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more