pub struct StartBatch {
pub channel_id: ChannelId,
pub batch_size: u16,
pub message_type: Option<u16>,
}Expand description
A start_batch message to be sent to group together multiple channel messages as a single
logical message.
Fields§
§channel_id: ChannelIdThe channel ID of all messages in the batch.
batch_size: u16The number of messages to follow.
message_type: Option<u16>The type of all messages expected in the batch.
Trait Implementations§
Source§impl Clone for StartBatch
impl Clone for StartBatch
Source§fn clone(&self) -> StartBatch
fn clone(&self) -> StartBatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StartBatch
impl Debug for StartBatch
Source§impl Hash for StartBatch
impl Hash for StartBatch
Source§impl LengthReadable for StartBatch
impl LengthReadable for StartBatch
Source§fn read_from_fixed_length_buffer<R: LengthLimitedRead>(
r: &mut R,
) -> Result<Self, DecodeError>
fn read_from_fixed_length_buffer<R: LengthLimitedRead>( r: &mut R, ) -> Result<Self, DecodeError>
Reads a
Self in from the given LengthLimitedRead.Source§impl PartialEq for StartBatch
impl PartialEq for StartBatch
Source§impl Writeable for StartBatch
impl Writeable for StartBatch
impl Eq for StartBatch
impl StructuralPartialEq for StartBatch
Auto Trait Implementations§
impl Freeze for StartBatch
impl RefUnwindSafe for StartBatch
impl Send for StartBatch
impl Sync for StartBatch
impl Unpin for StartBatch
impl UnwindSafe for StartBatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more