pub trait LpMessageBatch: Sized {
    // Required methods
    fn pack_with(&mut self, other: Self) -> DispatchResult;
    fn submessages(&self) -> Vec<Self>;
    fn empty() -> Self;
}
Expand description

Behavior or a message that can be batched

Required Methods§

source

fn pack_with(&mut self, other: Self) -> DispatchResult

Extend this message with a new one

source

fn submessages(&self) -> Vec<Self>

Decompose the message into a list of messages If the message is not decomposable, it returns the own message.

source

fn empty() -> Self

Creates an empty message. It’s the identity message for composing messages with pack_with

Object Safety§

This trait is not object safe.

Implementors§