Trait fixity::core::workspace::Workspace [−][src]
pub trait Workspace: Send + Sync { type Guard: Guard; #[must_use] fn lock<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Guard, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Associated Types
Loading content...Required methods
#[must_use]fn lock<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Guard, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn lock<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Guard, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn status<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Implementors
impl Workspace for Fs
[src]
type Guard = FsGuard<'a>
fn lock<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Guard, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Guard, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Workspace for Memory
[src]
type Guard = MemoryGuard<'a>
fn lock<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Guard, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Guard, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Status, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,