Skip to main content

StorageLock

Trait StorageLock 

Source
pub trait StorageLock: Send + Sync {
    // Provided method
    fn release<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait { ... }
}
Expand description

Exclusive refresh lease; RAII locks can use the default consuming release.

Provided Methods§

Source

fn release<'async_trait>( self: Box<Self>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Release explicitly; dropping the consumed lock also releases RAII resources.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§