Function libsecret::password_lookup

source ·
pub fn password_lookup<P: FnOnce(Result<Option<GString>, Error>) + 'static>(
    schema: Option<&Schema>,
    attributes: HashMap<&str, &str>,
    cancellable: Option<&impl IsA<Cancellable>>,
    callback: P
)
Expand description

Lookup a password in the secret service.

The @attributes should be a set of key and value string pairs.

If no secret is found then None is returned.

This method will return immediately and complete asynchronously.

§schema

the schema for attributes

§attributes

the attribute keys and values

§cancellable

optional cancellation object

§callback

called when the operation completes