Struct swarm_discovery::Peer
source · pub struct Peer { /* private fields */ }
Expand description
A peer discovered by the swarm discovery service.
The discovery yields service instances, which are located by a port and a list of IP addresses. Both IPv4 and IPv6 addresses may be present, depending on the configuration via Discoverer::with_ip_class.
Implementations§
Trait Implementations§
source§impl Ord for Peer
impl Ord for Peer
source§impl PartialOrd for Peer
impl PartialOrd for Peer
impl Eq for Peer
impl StructuralPartialEq for Peer
Auto Trait Implementations§
impl Freeze for Peer
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)