[][src]Struct interledger_packet::Prepare

pub struct Prepare { /* fields omitted */ }

Methods

impl Prepare[src]

pub fn amount(&self) -> u64[src]

pub fn set_amount(&mut self, amount: u64)[src]

pub fn expires_at(&self) -> SystemTime[src]

pub fn set_expires_at(&mut self, expires_at: SystemTime)[src]

pub fn execution_condition(&self) -> &[u8][src]

The returned value always has a length of 32.

pub fn destination(&self) -> Address[src]

pub fn data(&self) -> &[u8][src]

pub fn into_data(self) -> BytesMut[src]

Trait Implementations

impl Clone for Prepare[src]

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

impl PartialEq<Prepare> for Prepare[src]

impl From<Prepare> for Packet[src]

impl From<Prepare> for BytesMut[src]

impl Debug for Prepare[src]

impl TryFrom<BytesMut> for Prepare[src]

type Error = ParseError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Prepare

impl Unpin for Prepare

impl Sync for Prepare

impl UnwindSafe for Prepare

impl RefUnwindSafe for Prepare

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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

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