[][src]Struct ckb_jsonrpc_types::NodeAddress

pub struct NodeAddress {
    pub address: String,
    pub score: Uint64,
}

Node P2P address and score.

Fields

address: String

P2P address.

This is the same address used in the whitelist in ckb.toml.

Example: "/ip4/192.168.0.2/tcp/8112/p2p/QmTRHCdrRtgUzYLNCin69zEvPvLYdxUZLLfLYyHVY3DZAS"

score: Uint64

Address score.

A higher score means a higher probability of a successful connection.

Trait Implementations

impl Clone for NodeAddress[src]

impl Debug for NodeAddress[src]

impl Default for NodeAddress[src]

impl<'de> Deserialize<'de> for NodeAddress[src]

impl Eq for NodeAddress[src]

impl Hash for NodeAddress[src]

impl PartialEq<NodeAddress> for NodeAddress[src]

impl Serialize for NodeAddress[src]

impl StructuralEq for NodeAddress[src]

impl StructuralPartialEq for NodeAddress[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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>,