#[repr(C)]pub struct OutgoingMessageAddr {
pub to_actor_id: ActorId,
/* private fields */
}
Expand description
An outgoing message’s address, targeting either an entire actor or a specific behavior
Fields§
§to_actor_id: ActorId
Implementations§
Source§impl OutgoingMessageAddr
impl OutgoingMessageAddr
Sourcepub fn new(to_actor_id: ActorId) -> Self
pub fn new(to_actor_id: ActorId) -> Self
Constructs a new OutgoingMessageAddr
targeting an actor
Sourcepub fn new_to_behavior(
to_actor_id: ActorId,
behavior_guid: Guid,
) -> Result<Self, ErrorCode>
pub fn new_to_behavior( to_actor_id: ActorId, behavior_guid: Guid, ) -> Result<Self, ErrorCode>
Constructs a new OutgoingMessageAddr
targeting a specific behavior on an actor.
§Errors
Returns an ErrorCode::InvalidArguments
if the lower or higher u64
component
of the provided guid is an INVALID_GUID_COMPONENT
Sourcepub fn new_to_controller() -> Self
pub fn new_to_controller() -> Self
A new message targeted at the controller module itself.
Trait Implementations§
Source§impl Clone for OutgoingMessageAddr
impl Clone for OutgoingMessageAddr
Source§fn clone(&self) -> OutgoingMessageAddr
fn clone(&self) -> OutgoingMessageAddr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OutgoingMessageAddr
impl Debug for OutgoingMessageAddr
Source§impl PartialEq for OutgoingMessageAddr
impl PartialEq for OutgoingMessageAddr
impl Copy for OutgoingMessageAddr
impl Eq for OutgoingMessageAddr
impl Pod for OutgoingMessageAddr
impl StructuralPartialEq for OutgoingMessageAddr
Auto Trait Implementations§
impl Freeze for OutgoingMessageAddr
impl RefUnwindSafe for OutgoingMessageAddr
impl Send for OutgoingMessageAddr
impl Sync for OutgoingMessageAddr
impl Unpin for OutgoingMessageAddr
impl UnwindSafe for OutgoingMessageAddr
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.