Struct bee_message::MessageId[][src]

pub struct MessageId(_);

A message identifier, the BLAKE2b-256 hash of the message bytes. See https://www.blake2.net/ for more information.

Implementations

impl MessageId[src]

pub fn new(bytes: [u8; 32]) -> Self[src]

Creates a new MessageId.

pub fn null() -> Self[src]

Create a null MessageId.

Trait Implementations

impl AsRef<[u8]> for MessageId[src]

impl Clone for MessageId[src]

impl Copy for MessageId[src]

impl Debug for MessageId[src]

impl Display for MessageId[src]

impl Eq for MessageId[src]

impl From<[u8; 32]> for MessageId[src]

impl FromStr for MessageId[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for MessageId[src]

impl Ord for MessageId[src]

impl Packable for MessageId[src]

type Error = Error

Associated error type.

impl PartialEq<MessageId> for MessageId[src]

impl PartialOrd<MessageId> for MessageId[src]

impl StructuralEq for MessageId[src]

impl StructuralPartialEq for MessageId[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Base32Len for T where
    T: AsRef<[u8]>, 
[src]

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

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

impl<'f, T> CheckBase32<Vec<u5, Global>> for T where
    T: AsRef<[u8]>, 
[src]

type Err = Error

Error type if conversion fails

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> ToBase32 for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.