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§
Required Methods§
Sourcefn append_message(
&mut self,
message: M,
) -> impl Future<Output = Result<Self::Receipt, StoreError>> + Send
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".