Struct bee_message::payload::indexation::IndexationPayload [−][src]
pub struct IndexationPayload { /* fields omitted */ }
A payload which holds an index and associated data.
Implementations
impl IndexationPayload
[src]
impl IndexationPayload
[src]pub const KIND: u32
[src]
The payload kind of an IndexationPayload
.
pub fn new(index: &[u8], data: &[u8]) -> Result<Self, Error>
[src]
Creates a new IndexationPayload
.
pub fn index(&self) -> &[u8]ⓘ
[src]
Returns the index of an IndexationPayload
.
pub fn padded_index(&self) -> PaddedIndex
[src]
Returns the padded index of an IndexationPayload
.
pub fn data(&self) -> &[u8]ⓘ
[src]
Returns the data of an IndexationPayload
.
Trait Implementations
impl Clone for IndexationPayload
[src]
impl Clone for IndexationPayload
[src]fn clone(&self) -> IndexationPayload
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for IndexationPayload
[src]
impl Eq for IndexationPayload
[src]impl From<IndexationPayload> for Payload
[src]
impl From<IndexationPayload> for Payload
[src]fn from(payload: IndexationPayload) -> Self
[src]
impl Packable for IndexationPayload
[src]
impl Packable for IndexationPayload
[src]type Error = Error
Associated error type.
fn packed_len(&self) -> usize
[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
[src]
reader: &mut R
) -> Result<Self, Self::Error>
pub fn pack_new(&self) -> Vec<u8, Global>
[src]
pub fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
pub fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
impl PartialEq<IndexationPayload> for IndexationPayload
[src]
impl PartialEq<IndexationPayload> for IndexationPayload
[src]fn eq(&self, other: &IndexationPayload) -> bool
[src]
fn ne(&self, other: &IndexationPayload) -> bool
[src]
impl StructuralEq for IndexationPayload
[src]
impl StructuralEq for IndexationPayload
[src]Auto Trait Implementations
impl RefUnwindSafe for IndexationPayload
impl RefUnwindSafe for IndexationPayload
impl Send for IndexationPayload
impl Send for IndexationPayload
impl Sync for IndexationPayload
impl Sync for IndexationPayload
impl Unpin for IndexationPayload
impl Unpin for IndexationPayload
impl UnwindSafe for IndexationPayload
impl UnwindSafe for IndexationPayload