Skip to main content

MessageAppender

Trait MessageAppender 

Source
pub trait MessageAppender<M: Send>: Send {
    type Receipt: Send;

    // Required method
    fn append_message(
        &mut self,
        message: M,
    ) -> impl Future<Output = Result<Self::Receipt, StoreError>> + Send;
}
Expand description

Message append capability generic over a consumer-owned input.

Required Associated Types§

Source

type Receipt: Send

Value type used for receipt.

Required Methods§

Source

fn append_message( &mut self, message: M, ) -> impl Future<Output = Result<Self::Receipt, StoreError>> + Send

Appends one input and returns the implementation-owned receipt projection.

§Errors

Returns StoreError with crate::StoreOperation::Append when the append cannot produce a receipt.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§