Enum message_io::node::StoredNodeEvent
source · [−]pub enum StoredNodeEvent<S> {
Network(StoredNetEvent),
Signal(S),
}
Expand description
Variants
Network(StoredNetEvent)
The StoredNodeEvent
is an event that comes from the network.
See NetEvent
to know about the different network events.
Signal(S)
The StoredNodeEvent
is a signal.
A signal is an event produced by the own node to itself.
You can send signals with timers or priority.
See EventSender
to know about how to send signals.
Implementations
sourceimpl<S> StoredNodeEvent<S>
impl<S> StoredNodeEvent<S>
sourcepub fn network(self) -> StoredNetEvent
pub fn network(self) -> StoredNetEvent
Assume the event is a StoredNodeEvent::Network
, panics if not.
sourcepub fn signal(self) -> S
pub fn signal(self) -> S
Assume the event is a StoredNodeEvent::Signal
, panics if not.
Trait Implementations
sourceimpl<S: Clone> Clone for StoredNodeEvent<S>
impl<S: Clone> Clone for StoredNodeEvent<S>
sourcefn clone(&self) -> StoredNodeEvent<S>
fn clone(&self) -> StoredNodeEvent<S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<S: Debug> Debug for StoredNodeEvent<S>
impl<S: Debug> Debug for StoredNodeEvent<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for StoredNodeEvent<S> where
S: RefUnwindSafe,
impl<S> Send for StoredNodeEvent<S> where
S: Send,
impl<S> Sync for StoredNodeEvent<S> where
S: Sync,
impl<S> Unpin for StoredNodeEvent<S> where
S: Unpin,
impl<S> UnwindSafe for StoredNodeEvent<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more