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: u32,
instance: ForeignBehaviorInstanceId,
) -> IncomingMessageAddr
pub fn from_raw( actor_id: u32, instance: ForeignBehaviorInstanceId, ) -> IncomingMessageAddr
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 for IncomingMessageAddr
impl PartialEq for IncomingMessageAddr
impl Eq for IncomingMessageAddr
impl StructuralPartialEq for IncomingMessageAddr
Auto Trait Implementations§
impl Freeze for IncomingMessageAddr
impl RefUnwindSafe for IncomingMessageAddr
impl Send for IncomingMessageAddr
impl Sync for IncomingMessageAddr
impl Unpin for IncomingMessageAddr
impl UnwindSafe for IncomingMessageAddr
Blanket Implementations§
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