pub trait FileExt: Identifiable {
// Required methods
fn url(&self, http: impl AsRef<HttpClient>, preview: bool) -> String;
fn bytes<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
preview: bool,
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn url(&self, http: impl AsRef<HttpClient>, preview: bool) -> String
fn bytes<'life0, 'async_trait>(
&'life0 self,
http: impl 'async_trait + AsRef<HttpClient> + Send,
preview: bool,
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".