Enum message_io::node::StoredNodeEvent[][src]

pub enum StoredNodeEvent<S> {
    Network(StoredNetEvent),
    Signal(S),
}
Expand description

Analogous to NodeEvent but without reference the data. This kind of event is dispatched by NodeListener::to_event_queue(). It is useful when you need to move an NodeEvent

Variants

The StoredNodeEvent is an event that comes from the network. See NetEvent to know about the different network events.

Tuple Fields of Network

0: StoredNetEvent
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.

Tuple Fields of Signal

0: S

Implementations

Assume the event is a StoredNodeEvent::Network, panics if not.

Assume the event is a StoredNodeEvent::Signal, panics if not.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.