Trait LockWrite

Source
pub trait LockWrite: AsOpenFile + AsyncWrite {
    // Required methods
    fn lock_write<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = LockWriteResult<Self>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait;
    fn try_lock_write<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = LockWriteResult<Self>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait;
}

Required Methods§

Source

fn lock_write<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = LockWriteResult<Self>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,

Source

fn try_lock_write<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = LockWriteResult<Self>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,

Implementors§

Source§

impl<T> LockWrite for T
where T: AsOpenFile + AsyncWrite + Send + Sync + 'static,