Enum ark_api::behavior::IncomingMessageAddr
source · pub enum IncomingMessageAddr {
Behavior(BehaviorAddr),
Module(Option<ForeignBehaviorInstanceId>),
}Expand description
Target address of an incoming message.
Variants§
Behavior(BehaviorAddr)
The message is targeted at a specific behavior instance.
Module(Option<ForeignBehaviorInstanceId>)
This incoming message is targeted at the behavior module itself.
Implementations§
source§impl IncomingMessageAddr
impl IncomingMessageAddr
sourcepub fn from_raw(actor_id: ActorId, instance: ForeignBehaviorInstanceId) -> Self
pub fn from_raw(actor_id: ActorId, instance: ForeignBehaviorInstanceId) -> Self
Creates a new IncomingMessageAddr given its raw components.
sourcepub fn unwrap_behavior(&self) -> BehaviorAddr
pub fn unwrap_behavior(&self) -> BehaviorAddr
Assuming a message targeted at a behavior, unwraps it and extracts its components.
Trait Implementations§
source§impl Debug for IncomingMessageAddr
impl Debug for IncomingMessageAddr
source§impl PartialEq<IncomingMessageAddr> for IncomingMessageAddr
impl PartialEq<IncomingMessageAddr> for IncomingMessageAddr
source§fn eq(&self, other: &IncomingMessageAddr) -> bool
fn eq(&self, other: &IncomingMessageAddr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.