pub enum InEvent<PI> {
RecvMessage(PI, Message<PI>),
Command(Command<PI>),
TimerExpired(Timer<PI>),
PeerDisconnected(PI),
UpdatePeerData(PeerData),
}
Expand description
Input event to the topic state handler.
Variants§
RecvMessage(PI, Message<PI>)
Message received from the network.
Command(Command<PI>)
Execute a command from the application.
TimerExpired(Timer<PI>)
Trigger a previously scheduled timer.
PeerDisconnected(PI)
Peer disconnected on the network level.
UpdatePeerData(PeerData)
Update the opaque peer data about yourself.
Trait Implementations§
Auto Trait Implementations§
impl<PI> !Freeze for InEvent<PI>
impl<PI> RefUnwindSafe for InEvent<PI>where
PI: RefUnwindSafe,
impl<PI> Send for InEvent<PI>where
PI: Send,
impl<PI> Sync for InEvent<PI>where
PI: Sync,
impl<PI> Unpin for InEvent<PI>where
PI: Unpin,
impl<PI> UnwindSafe for InEvent<PI>where
PI: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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