pub trait RegistryMetadataExt: Sized {
// Required methods
fn fetch_or_default(
registry: &Registry,
) -> impl Future<Output = Self> + Send;
fn fetch(
registry: &Registry,
) -> impl Future<Output = Result<Option<Self>, Error>> + Send;
}Expand description
Extension trait for RegistryMetadata adding client functionality.
Required Methods§
Sourcefn fetch_or_default(registry: &Registry) -> impl Future<Output = Self> + Send
fn fetch_or_default(registry: &Registry) -> impl Future<Output = Self> + Send
Attempt to fetch RegistryMetadata from the given Registry. On
failure, return defaults.
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.