Struct bee_message::prelude::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.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl Hash for MessageId[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for MessageId[src]
fn cmp(&self, other: &MessageId) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]
pub fn max(self, other: Self) -> Self#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]
pub fn min(self, other: Self) -> Self#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Selfimpl Packable for MessageId[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<MessageId> for MessageId[src]
impl PartialOrd<MessageId> for MessageId[src]
fn partial_cmp(&self, other: &MessageId) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for MessageId[src]
impl StructuralPartialEq for MessageId[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageId
impl Send for MessageId
impl Sync for MessageId
impl Unpin for MessageId
impl UnwindSafe for MessageId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Base32Len for T where
T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
pub fn base32_len(&self) -> usize[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'f, T> CheckBase32<Vec<u5, Global>> for T where
T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
type Err = Error
Error type if conversion fails
pub fn check_base32(
self
) -> Result<Vec<u5, Global>, <T as CheckBase32<Vec<u5, Global>>>::Err>[src]
self
) -> Result<Vec<u5, Global>, <T as CheckBase32<Vec<u5, Global>>>::Err>
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToBase32 for T where
T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32, [src]
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
pub fn to_base32(&self) -> Vec<u5, Global>ⓘ[src]
impl<T> ToHex for T where
T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>, [src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>, [src]
U: FromIterator<char>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,