enum PeerCommand {
Add(Role, Vec<(PublicKey, NetAddr)>),
Remove(Vec<PublicKey>),
Assign(Role, Vec<PublicKey>),
}Expand description
Update network peers.
Variants§
Add(Role, Vec<(PublicKey, NetAddr)>)
Add the given peers.
Remove(Vec<PublicKey>)
Remove the given peers.
Assign(Role, Vec<PublicKey>)
Assign a Role to the given peers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerCommand
impl RefUnwindSafe for PeerCommand
impl Send for PeerCommand
impl Sync for PeerCommand
impl Unpin for PeerCommand
impl UnsafeUnpin for PeerCommand
impl UnwindSafe for PeerCommand
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