Struct bee_message::payload::indexation::IndexationPayload
source · pub struct IndexationPayload { /* private fields */ }Expand description
A payload which holds an index and associated data.
Implementations§
source§impl IndexationPayload
impl IndexationPayload
sourcepub fn padded_index(&self) -> PaddedIndex
pub fn padded_index(&self) -> PaddedIndex
Returns the padded index of an IndexationPayload.
Trait Implementations§
source§impl Clone for IndexationPayload
impl Clone for IndexationPayload
source§fn clone(&self) -> IndexationPayload
fn clone(&self) -> IndexationPayload
Returns a copy 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 IndexationPayload
impl Debug for IndexationPayload
source§impl From<IndexationPayload> for Payload
impl From<IndexationPayload> for Payload
source§fn from(payload: IndexationPayload) -> Self
fn from(payload: IndexationPayload) -> Self
Converts to this type from the input type.
source§impl Packable for IndexationPayload
impl Packable for IndexationPayload
source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
source§fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
source§fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>( reader: &mut R ) -> Result<Self, Self::Error>
Reads bytes from the passed reader and unpacks them into an instance.
source§fn pack_new(&self) -> Vec<u8, Global>
fn pack_new(&self) -> Vec<u8, Global>
Packs the instance to bytes and writes them to a newly allocated vector.
source§impl PartialEq<IndexationPayload> for IndexationPayload
impl PartialEq<IndexationPayload> for IndexationPayload
source§fn eq(&self, other: &IndexationPayload) -> bool
fn eq(&self, other: &IndexationPayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.