Struct ckb_jsonrpc_types::NodeAddress [−][src]
Expand description
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 Clone for NodeAddress
[src]fn clone(&self) -> NodeAddress
[src]
fn clone(&self) -> NodeAddress
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for NodeAddress
[src]
impl Debug for NodeAddress
[src]impl Default for NodeAddress
[src]
impl Default for NodeAddress
[src]fn default() -> NodeAddress
[src]
fn default() -> NodeAddress
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for NodeAddress
[src]
impl<'de> Deserialize<'de> for NodeAddress
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Hash for NodeAddress
[src]
impl Hash for NodeAddress
[src]impl PartialEq<NodeAddress> for NodeAddress
[src]
impl PartialEq<NodeAddress> for NodeAddress
[src]fn eq(&self, other: &NodeAddress) -> bool
[src]
fn eq(&self, other: &NodeAddress) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &NodeAddress) -> bool
[src]
fn ne(&self, other: &NodeAddress) -> bool
[src]This method tests for !=
.
impl Serialize for NodeAddress
[src]
impl Serialize for NodeAddress
[src]impl Eq for NodeAddress
[src]
impl StructuralEq for NodeAddress
[src]
impl StructuralPartialEq for NodeAddress
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeAddress
impl Send for NodeAddress
impl Sync for NodeAddress
impl Unpin for NodeAddress
impl UnwindSafe for NodeAddress
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,