[][src]Enum tari_p2p::services::liveness::LivenessResponse

pub enum LivenessResponse {
    Ok,
    Count(usize),
    AvgLatency(Option<u32>),
    NumActiveNeighbours(usize),
    NodeIdAdded,
    NodeIdRemoved,
    NodeIdStats(NodeStats),
    NodeIdsCleared,
    BestMonitoredNodeId(Option<NodeId>),
}

Response type for LivenessService

Variants

Ok

Indicates that the request succeeded

Count(usize)

Used to return a counter value from GetPingCount and GetPongCount

AvgLatency(Option<u32>)

Response for GetAvgLatency

NumActiveNeighbours(usize)

The number of active neighbouring peers

NodeIdAdded
NodeIdRemoved
NodeIdStats(NodeStats)
NodeIdsCleared
BestMonitoredNodeId(Option<NodeId>)

Trait Implementations

impl Debug for LivenessResponse[src]

Auto Trait Implementations

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, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> DebugAny for T where
    T: Any + Debug

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> IntoSql for T

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

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> UnsafeAny for T where
    T: Any

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