pub enum DaemonCmd {
Join(Member),
Leave(Address),
ApplyGossip(GossipPdu),
Tick,
Shutdown,
}Expand description
Control commands accepted by the daemon mailbox.
Variants§
Join(Member)
Add/update a member (Joining).
Leave(Address)
Mark addr as Leaving.
ApplyGossip(GossipPdu)
Inject a peer’s gossip PDU (called by the transport on receive).
Tick
Force a single tick (mostly for tests).
Shutdown
Stop the daemon loop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DaemonCmd
impl RefUnwindSafe for DaemonCmd
impl Send for DaemonCmd
impl Sync for DaemonCmd
impl Unpin for DaemonCmd
impl UnsafeUnpin for DaemonCmd
impl UnwindSafe for DaemonCmd
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