Struct overnet_core::ListablePeer
source · pub struct ListablePeer {
pub node_id: NodeId,
pub is_self: bool,
pub services: Vec<String>,
}
Expand description
A type that can be converted into a super::Peer
Fields§
§node_id: NodeId
Node ID of this peer.
is_self: bool
Whether this peer is the node producing the list.
services: Vec<String>
Services offered by this peer.
Trait Implementations§
source§impl Clone for ListablePeer
impl Clone for ListablePeer
source§fn clone(&self) -> ListablePeer
fn clone(&self) -> ListablePeer
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 ListablePeer
impl Debug for ListablePeer
source§impl PartialEq for ListablePeer
impl PartialEq for ListablePeer
source§fn eq(&self, other: &ListablePeer) -> bool
fn eq(&self, other: &ListablePeer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListablePeer
Auto Trait Implementations§
impl Freeze for ListablePeer
impl RefUnwindSafe for ListablePeer
impl Send for ListablePeer
impl Sync for ListablePeer
impl Unpin for ListablePeer
impl UnwindSafe for ListablePeer
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
)