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
Provided Methods§
Sourcefn created(&self) -> u64
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
Sourcefn modified(&self) -> u64
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
Sourcefn retrieve_secret<P: FnOnce(Result<Option<Value>, Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
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>>
Sourcefn retrieve_secret_sync(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<Option<Value>, Error>
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
Sourcefn set_created(&self, created: u64)
fn set_created(&self, created: u64)
The date and time (in seconds since the UNIX epoch) that this item was created.
Sourcefn set_modified(&self, modified: u64)
fn set_modified(&self, modified: u64)
The date and time (in seconds since the UNIX epoch) that this item was last modified.
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.