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]

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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the data of an IndexationPayload.

Trait Implementations

impl Clone for IndexationPayload[src]

impl Debug for IndexationPayload[src]

impl Eq for IndexationPayload[src]

impl From<IndexationPayload> for Payload[src]

impl Packable for IndexationPayload[src]

type Error = Error

Associated error type.

impl PartialEq<IndexationPayload> for IndexationPayload[src]

impl StructuralEq for IndexationPayload[src]

impl StructuralPartialEq for IndexationPayload[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.