#[non_exhaustive]
pub enum Outcome<T> {
Unicast(T),
GentleUnicast(T),
Multicast(Vec<T>),
GentleMulticast(Vec<T>),
Broadcast,
Discard,
Default,
}
Expand description
Specifies which actors will get a message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unicast(T)
Routes a message to an actor with the specified key. If there is no active or restarting actor for this key, it will be started.
GentleUnicast(T)
Routes a message to an actor with the specified key. If there is no active or restarting actor for this key, the message will be discarded, no actors are started.
Multicast(Vec<T>)
Routes a message to all actors with specified keys. If there is no active or restarting actors for these keys, they will be started.
GentleMulticast(Vec<T>)
Routes a message to all actors with specified keys. If there is no active or restarting actors for these keys, the message will be descarded, no actors are started.
Broadcast
Routes a message to all active actors.
Discard
Discards a message. If a message is discarded by everyone, the sending side gets an error.
Default
Acts as Broadcast
for system messages and Discard
otherwise.