pub struct GetNodeAddressesResult {
pub time: u64,
pub services: usize,
pub address: String,
pub port: u16,
}
Fields§
§time: u64
Timestamp in seconds since epoch (Jan 1 1970 GMT) keeping track of when the node was last seen
services: usize
The services offered
address: String
The address of the node
port: u16
The port of the node
Trait Implementations§
source§impl Clone for GetNodeAddressesResult
impl Clone for GetNodeAddressesResult
source§fn clone(&self) -> GetNodeAddressesResult
fn clone(&self) -> GetNodeAddressesResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetNodeAddressesResult
impl Debug for GetNodeAddressesResult
source§impl<'de> Deserialize<'de> for GetNodeAddressesResult
impl<'de> Deserialize<'de> for GetNodeAddressesResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for GetNodeAddressesResult
impl PartialEq for GetNodeAddressesResult
source§fn eq(&self, other: &GetNodeAddressesResult) -> bool
fn eq(&self, other: &GetNodeAddressesResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GetNodeAddressesResult
impl Serialize for GetNodeAddressesResult
impl Eq for GetNodeAddressesResult
impl StructuralPartialEq for GetNodeAddressesResult
Auto Trait Implementations§
impl Freeze for GetNodeAddressesResult
impl RefUnwindSafe for GetNodeAddressesResult
impl Send for GetNodeAddressesResult
impl Sync for GetNodeAddressesResult
impl Unpin for GetNodeAddressesResult
impl UnwindSafe for GetNodeAddressesResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more