pub enum PeerRole {
Parent,
Child,
Peer,
}Expand description
Role of a peer in the mesh topology
Variants§
Parent
Our parent (we are a child of this node)
Child
Our child (this node is a child of us)
Peer
Peer at the same level (sibling)
Trait Implementations§
impl Copy for PeerRole
impl Eq for PeerRole
impl StructuralPartialEq for PeerRole
Auto Trait Implementations§
impl Freeze for PeerRole
impl RefUnwindSafe for PeerRole
impl Send for PeerRole
impl Sync for PeerRole
impl Unpin for PeerRole
impl UnwindSafe for PeerRole
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