pub trait ContentProviderExtManual: Sealed + IsA<ContentProvider> {
// Provided method
fn value(&self, type_: Type) -> Result<Value, Error> { ... }
}
Expand description
Trait containing manually implemented methods of
ContentProvider
.
Provided Methods§
Sourcefn value(&self, type_: Type) -> Result<Value, Error>
fn value(&self, type_: Type) -> Result<Value, Error>
Gets the contents of @self stored in @value.
The @value will have been initialized to the GType
the value should be
provided in. This given GType
does not need to be listed in the formats
returned by ContentProviderExt::formats()
. However, if the
given GType
is not supported, this operation can fail and
G_IO_ERROR_NOT_SUPPORTED
will be reported.
§Returns
true
if the value was set successfully. Otherwise
@error will be set to describe the failure.
§value
the GValue
to fill
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.