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
sourceimpl Clone for GetNodeAddressesResult
impl Clone for GetNodeAddressesResult
sourcefn clone(&self) -> GetNodeAddressesResult
fn clone(&self) -> GetNodeAddressesResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetNodeAddressesResult
impl Debug for GetNodeAddressesResult
sourceimpl<'de> Deserialize<'de> for GetNodeAddressesResult
impl<'de> Deserialize<'de> for GetNodeAddressesResult
sourcefn 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
sourceimpl PartialEq<GetNodeAddressesResult> for GetNodeAddressesResult
impl PartialEq<GetNodeAddressesResult> for GetNodeAddressesResult
sourcefn 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 ==
. Read more
sourceimpl Serialize for GetNodeAddressesResult
impl Serialize for GetNodeAddressesResult
impl Eq for GetNodeAddressesResult
impl StructuralEq for GetNodeAddressesResult
impl StructuralPartialEq for GetNodeAddressesResult
Auto Trait Implementations
impl RefUnwindSafe for GetNodeAddressesResult
impl Send for GetNodeAddressesResult
impl Sync for GetNodeAddressesResult
impl Unpin for GetNodeAddressesResult
impl UnwindSafe for GetNodeAddressesResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more