pub trait RetrievableExt: IsA<Retrievable> + Sealed + 'static {
Show 13 methods // Provided methods fn created(&self) -> u64 { ... } fn label(&self) -> GString { ... } fn modified(&self) -> u64 { ... } fn retrieve_secret<P: FnOnce(Result<Option<Value>, Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P ) { ... } fn retrieve_secret_future( &self ) -> Pin<Box_<dyn Future<Output = Result<Option<Value>, Error>> + 'static>> { ... } fn retrieve_secret_sync( &self, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Option<Value>, Error> { ... } fn set_created(&self, created: u64) { ... } fn set_label(&self, label: Option<&str>) { ... } fn set_modified(&self, modified: u64) { ... } fn connect_attributes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_created_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_label_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_modified_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Retrievable methods.

§Implementors

Item, Retrievable

Provided Methods§

source

fn created(&self) -> u64

Get the created date and time of the object.

The return value is the number of seconds since the unix epoch, January 1st 1970.

§Returns

the created date and time

source

fn label(&self) -> GString

Get the label of this item.

§Returns

the label, which should be freed with free()

source

fn modified(&self) -> u64

Get the modified date and time of the object.

The return value is the number of seconds since the unix epoch, January 1st 1970.

§Returns

the modified date and time

source

fn retrieve_secret<P: FnOnce(Result<Option<Value>, Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

Retrieve the secret value of this object.

Each retrievable object has a single secret which might be a password or some other secret binary value.

This function returns immediately and completes asynchronously.

§cancellable

optional cancellation object

§callback

called when the operation completes

source

fn retrieve_secret_future( &self ) -> Pin<Box_<dyn Future<Output = Result<Option<Value>, Error>> + 'static>>

source

fn retrieve_secret_sync( &self, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Option<Value>, Error>

Retrieve the secret value of this object synchronously.

Each retrievable object has a single secret which might be a password or some other secret binary value.

This method may block indefinitely and should not be used in user interface threads.

§cancellable

optional cancellation object

§Returns

the secret value which should be released with Value::unref(), or None

source

fn set_created(&self, created: u64)

The date and time (in seconds since the UNIX epoch) that this item was created.

source

fn set_label(&self, label: Option<&str>)

The human readable label for the item.

source

fn set_modified(&self, modified: u64)

The date and time (in seconds since the UNIX epoch) that this item was last modified.

source

fn connect_attributes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_created_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_label_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_modified_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§