Struct bee_message::payload::receipt::TailTransactionHash[][src]

pub struct TailTransactionHash(_);
Expand description

Represents a tail transaction hash of a legacy bundle.

Implementations

impl TailTransactionHash[src]

pub fn new(bytes: [u8; 49]) -> Result<Self, Error>[src]

Creates a new TailTransactionHash.

Trait Implementations

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

fn as_ref(&self) -> &[u8]

Notable traits for &'_ [u8]

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

Performs the conversion.

impl Clone for TailTransactionHash[src]

fn clone(&self) -> TailTransactionHash[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for TailTransactionHash[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for TailTransactionHash[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Packable for TailTransactionHash[src]

type Error = Error

Associated error type.

fn packed_len(&self) -> usize[src]

Returns the length of the packed bytes.

fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]

Packs the instance to bytes and writes them to the passed writer.

fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
    reader: &mut R
) -> Result<Self, Self::Error>
[src]

Reads bytes from the passed reader and unpacks them into an instance.

fn pack_new(&self) -> Vec<u8, Global>[src]

Packs the instance to bytes and writes them to a newly allocated vector.

fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
    R: Read + ?Sized
[src]

Reads bytes from the passed reader and unpacks them into an instance. Applies syntactic checks. Read more

fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
    R: Read + ?Sized
[src]

Reads bytes from the passed reader and unpacks them into an instance. Doesn’t apply syntactic checks. Read more

impl PartialEq<TailTransactionHash> for TailTransactionHash[src]

fn eq(&self, other: &TailTransactionHash) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &TailTransactionHash) -> bool[src]

This method tests for !=.

impl TryFrom<[u8; 49]> for TailTransactionHash[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(bytes: [u8; 49]) -> Result<Self, Error>[src]

Performs the conversion.

impl Eq for TailTransactionHash[src]

impl StructuralEq for TailTransactionHash[src]

impl StructuralPartialEq for TailTransactionHash[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn base32_len(&self) -> usize[src]

Calculate the base32 serialized length

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

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]

Check if all values are in range and return array-like struct of u5 values

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

pub fn write_base32<W>(
    &self,
    writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
    W: WriteBase32
[src]

Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more

fn to_base32(&self) -> Vec<u5, Global>[src]

Convert Self to base32 vector

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

pub fn encode_hex<U>(&self) -> U where
    U: FromIterator<char>, 
[src]

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca) Read more

pub fn encode_hex_upper<U>(&self) -> U where
    U: FromIterator<char>, 
[src]

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA) Read more

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.