[][src]Struct lnrpc::Peer

pub struct Peer {
    pub pub_key: String,
    pub address: String,
    pub bytes_sent: u64,
    pub bytes_recv: u64,
    pub sat_sent: i64,
    pub sat_recv: i64,
    pub inbound: bool,
    pub ping_time: i64,
    pub sync_type: i32,
    pub features: HashMap<u32, Feature>,
    pub errors: Vec<TimestampedError>,
}

Fields

pub_key: Stringaddress: Stringbytes_sent: u64bytes_recv: u64sat_sent: i64sat_recv: i64inbound: boolping_time: i64sync_type: i32

The type of sync we are currently performing with this peer.

features: HashMap<u32, Feature>errors: Vec<TimestampedError>

The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.

Implementations

impl Peer[src]

pub fn sync_type(&self) -> SyncType[src]

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

pub fn set_sync_type(&mut self, value: SyncType)[src]

Sets sync_type to the provided enum value.

Trait Implementations

impl Clone for Peer[src]

impl Debug for Peer[src]

impl Default for Peer[src]

impl Message for Peer[src]

impl PartialEq<Peer> for Peer[src]

impl StructuralPartialEq for Peer[src]

Auto Trait Implementations

impl RefUnwindSafe for Peer

impl Send for Peer

impl Sync for Peer

impl Unpin for Peer

impl UnwindSafe for Peer

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]