pub trait VersionsStore {
// Required methods
fn base_url(&self) -> Url;
fn versions_get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Version>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn versions_get_details<'life0, 'async_trait>(
&'life0 self,
version_number: VersionNumber,
) -> Pin<Box<dyn Future<Output = Result<Option<VersionDetails>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn url_path(&self, path: &[impl AsRef<str>]) -> Url { ... }
}Required Methods§
fn base_url(&self) -> Url
fn versions_get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Version>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn versions_get_details<'life0, 'async_trait>(
&'life0 self,
version_number: VersionNumber,
) -> Pin<Box<dyn Future<Output = Result<Option<VersionDetails>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
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.