Trait AsyncWriteTransaction

Source
pub trait AsyncWriteTransaction: AsyncWrite {
    // Required method
    fn poll_finish(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Result<(), Self::Error>>;

    // Provided method
    fn finish(self) -> Finish<Self>
       where Self: Sized + Unpin { ... }
}
Expand description

This trait provides the methods that are useful for write transactions that work asynchronously.

Required Methods§

Source

fn poll_finish( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Poll the future that finishes the transaction.

Provided Methods§

Source

fn finish(self) -> Finish<Self>
where Self: Sized + Unpin,

Finish the transaction.

Implementors§