pub enum Addr {
Peer(PeerAddr<NodeId, Address>),
Node(NodeId),
}Expand description
Address used for the Operation::Connect
Variants§
Peer(PeerAddr<NodeId, Address>)
Fully-specified address of the form <NID>@<Address>
Node(NodeId)
Just the NID, to be used for address lookups.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Addr
impl RefUnwindSafe for Addr
impl Send for Addr
impl Sync for Addr
impl Unpin for Addr
impl UnwindSafe for Addr
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