pub trait DocumentService:
Send
+ Sync
+ Clone
+ 'static {
// Required methods
fn insert<'life0, 'life1, 'life2, 'life3, 'async_trait, T>(
&'life0 self,
id: &'life1 Uuid,
hmac: &'life2 DocumentHmac,
content: &'life3 EncryptedDocument,
) -> Pin<Box<dyn Future<Output = Result<(), ServerError<T>>> + Send + 'async_trait>>
where T: 'async_trait + Debug,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn get<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
id: &'life1 Uuid,
hmac: &'life2 DocumentHmac,
) -> Pin<Box<dyn Future<Output = Result<EncryptedDocument, ServerError<T>>> + Send + 'async_trait>>
where T: 'async_trait + Debug,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
id: &'life1 Uuid,
hmac: &'life2 DocumentHmac,
) -> Pin<Box<dyn Future<Output = Result<(), ServerError<T>>> + Send + 'async_trait>>
where T: 'async_trait + Debug,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn exists(&self, id: &Uuid, hmac: &DocumentHmac) -> bool;
fn get_path(&self, id: &Uuid, hmac: &DocumentHmac) -> PathBuf;
}
Required Methods§
fn insert<'life0, 'life1, 'life2, 'life3, 'async_trait, T>(
&'life0 self,
id: &'life1 Uuid,
hmac: &'life2 DocumentHmac,
content: &'life3 EncryptedDocument,
) -> Pin<Box<dyn Future<Output = Result<(), ServerError<T>>> + Send + 'async_trait>>where
T: 'async_trait + Debug,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
id: &'life1 Uuid,
hmac: &'life2 DocumentHmac,
) -> Pin<Box<dyn Future<Output = Result<EncryptedDocument, ServerError<T>>> + Send + 'async_trait>>where
T: 'async_trait + Debug,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
id: &'life1 Uuid,
hmac: &'life2 DocumentHmac,
) -> Pin<Box<dyn Future<Output = Result<(), ServerError<T>>> + Send + 'async_trait>>where
T: 'async_trait + Debug,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn exists(&self, id: &Uuid, hmac: &DocumentHmac) -> bool
fn get_path(&self, id: &Uuid, hmac: &DocumentHmac) -> PathBuf
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.