pub struct PeerNode {
pub node_id: Option<String>,
pub addr: Option<String>,
}
Expand description
Represents a peer-node in the swarm
Fields§
§node_id: Option<String>
Unique identifier of for this node in the swarm.
addr: Option<String>
IP address and ports at which this node can be reached.
Trait Implementations§
source§impl<'de> Deserialize<'de> for PeerNode
impl<'de> Deserialize<'de> for PeerNode
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PeerNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PeerNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for PeerNode
impl Serialize for PeerNode
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PeerNode
Auto Trait Implementations§
impl Freeze for PeerNode
impl RefUnwindSafe for PeerNode
impl Send for PeerNode
impl Sync for PeerNode
impl Unpin for PeerNode
impl UnwindSafe for PeerNode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)