[][src]Struct lnpbp::lnp::application::message::Ping

pub struct Ping {
    pub ignored: Vec<u8>,
    pub pong_size: u16,
}

In order to allow for the existence of long-lived TCP connections, at times it may be required that both ends keep alive the TCP connection at the application level. Such messages also allow obfuscation of traffic patterns.

Specification

https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#the-ping-and-pong-messages

Fields

ignored: Vec<u8>pong_size: u16

Trait Implementations

impl Clone for Ping[src]

impl Debug for Ping[src]

impl Display for Ping[src]

impl Eq for Ping[src]

impl PartialEq<Ping> for Ping[src]

impl StrictDecode for Ping[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for Ping[src]

type Error = Error

Implementation-dependent error type

impl StructuralEq for Ping[src]

impl StructuralPartialEq for Ping[src]

Auto Trait Implementations

impl RefUnwindSafe for Ping

impl Send for Ping

impl Sync for Ping

impl Unpin for Ping

impl UnwindSafe for Ping

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, 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> 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.

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