pub fn password_lookup_binary_sync(
schema: Option<&Schema>,
attributes: HashMap<&str, &str>,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<Option<Value>, Error>
Expand description
Lookup a password in the secret service.
This is similar to password_lookup_sync()
, but returns a
Value
instead of a null-terminated password.
This method may block indefinitely and should not be used in user interface threads.
§schema
the schema for attributes
§attributes
the attribute keys and values
§cancellable
optional cancellation object
§Returns
a newly allocated Value
, which should be
released with Value::unref()
, or None
if no secret found