pub enum Cmd<P> {
Broadcast {
id: BroadcastId,
msg: P,
},
Stop {
id: BroadcastId,
},
}Expand description
Requests from the layer above.
Variants§
Broadcast
Broadcast msg as id, and keep transmitting it until stopped.
Stop
Stop retransmitting the broadcast named id, on every link it went out over.
Fields
§
id: BroadcastIdTrait Implementations§
impl<P: Eq> Eq for Cmd<P>
impl<P: PartialEq> StructuralPartialEq for Cmd<P>
Auto Trait Implementations§
impl<P> Freeze for Cmd<P>where
P: Freeze,
impl<P> RefUnwindSafe for Cmd<P>where
P: RefUnwindSafe,
impl<P> Send for Cmd<P>where
P: Send,
impl<P> Sync for Cmd<P>where
P: Sync,
impl<P> Unpin for Cmd<P>where
P: Unpin,
impl<P> UnsafeUnpin for Cmd<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Cmd<P>where
P: UnwindSafe,
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