[][src]Struct lnrpc::Failure

pub struct Failure {
    pub code: i32,
    pub channel_update: Option<ChannelUpdate>,
    pub htlc_msat: u64,
    pub onion_sha_256: Vec<u8>,
    pub cltv_expiry: u32,
    pub flags: u32,
    pub failure_source_index: u32,
    pub height: u32,
}

Fields

code: i32channel_update: Option<ChannelUpdate>htlc_msat: u64onion_sha_256: Vec<u8>cltv_expiry: u32flags: u32failure_source_index: u32

The position in the path of the intermediate or final node that generated the failure message. Position zero is the sender node.

height: u32

Implementations

impl Failure[src]

pub fn code(&self) -> FailureCode[src]

Returns the enum value of code, or the default if the field is set to an invalid enum value.

pub fn set_code(&mut self, value: FailureCode)[src]

Sets code to the provided enum value.

Trait Implementations

impl Clone for Failure[src]

impl Debug for Failure[src]

impl Default for Failure[src]

impl Message for Failure[src]

impl PartialEq<Failure> for Failure[src]

impl StructuralPartialEq for Failure[src]

Auto Trait Implementations

impl RefUnwindSafe for Failure

impl Send for Failure

impl Sync for Failure

impl Unpin for Failure

impl UnwindSafe for Failure

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> Instrument for T[src]

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

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]