diff options
Diffstat (limited to 'src/media/storage/mod.rs')
-rw-r--r-- | src/media/storage/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/media/storage/mod.rs b/src/media/storage/mod.rs index 020999c..38410e6 100644 --- a/src/media/storage/mod.rs +++ b/src/media/storage/mod.rs @@ -86,6 +86,8 @@ pub type Result<T> = std::result::Result<T, MediaStoreError>; #[async_trait] pub trait MediaStore: 'static + Send + Sync + Clone { + // Initialize self from a URL, possibly performing asynchronous initialization. + async fn new(url: &'_ url::Url) -> Result<Self>; async fn write_streaming<T>( &self, domain: &str, |