Struct ark_api::behavior::OutgoingMessageAddr
source · [−]#[repr(C)]pub struct OutgoingMessageAddr {
pub to_actor_id: u32,
/* private fields */
}Expand description
An outgoing message’s address, targeting either an entire actor or a specific behavior
Fields
to_actor_id: u32Implementations
sourceimpl OutgoingMessageAddr
impl OutgoingMessageAddr
sourcepub fn new(to_actor_id: u32) -> OutgoingMessageAddr
pub fn new(to_actor_id: u32) -> OutgoingMessageAddr
Constructs a new OutgoingMessageAddr targeting an actor
sourcepub fn new_to_behavior(
to_actor_id: u32,
behavior_guid: u128
) -> Result<OutgoingMessageAddr, ErrorCode>
pub fn new_to_behavior(
to_actor_id: u32,
behavior_guid: u128
) -> Result<OutgoingMessageAddr, 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() -> OutgoingMessageAddr
pub fn new_to_controller() -> OutgoingMessageAddr
A new message targeted at the controller module itself.
Trait Implementations
sourceimpl Clone for OutgoingMessageAddr
impl Clone for OutgoingMessageAddr
sourcefn clone(&self) -> OutgoingMessageAddr
fn clone(&self) -> OutgoingMessageAddr
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for OutgoingMessageAddr
impl Debug for OutgoingMessageAddr
sourceimpl PartialEq<OutgoingMessageAddr> for OutgoingMessageAddr
impl PartialEq<OutgoingMessageAddr> for OutgoingMessageAddr
sourcefn eq(&self, other: &OutgoingMessageAddr) -> bool
fn eq(&self, other: &OutgoingMessageAddr) -> bool
impl Copy for OutgoingMessageAddr
impl Eq for OutgoingMessageAddr
impl Pod for OutgoingMessageAddr
impl StructuralEq for OutgoingMessageAddr
impl StructuralPartialEq for OutgoingMessageAddr
Auto Trait Implementations
impl RefUnwindSafe for OutgoingMessageAddr
impl Send for OutgoingMessageAddr
impl Sync for OutgoingMessageAddr
impl Unpin for OutgoingMessageAddr
impl UnwindSafe for OutgoingMessageAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
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. Read more