Skip to main content

NamespaceLocking

Trait NamespaceLocking 

Source
pub trait NamespaceLocking:
    Send
    + Sync
    + Debug
    + 'static {
    type Error: Error + Send + Sync + 'static;
    type NamespaceLock: Send + 'static;

    // Required method
    fn new_ns_lock<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Self::NamespaceLock, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Source

type NamespaceLock: Send + 'static

Required Methods§

Source

fn new_ns_lock<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Self::NamespaceLock, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§