pub struct OutboundEnvelope { /* private fields */ }Expand description
Represents an outbound envelope for sending messages in the actor system.
Implementations§
Source§impl OutboundEnvelope
impl OutboundEnvelope
Sourcepub fn new(return_address: MessageAddress) -> Self
pub fn new(return_address: MessageAddress) -> Self
Sourcepub fn reply_to(&self) -> MessageAddress
pub fn reply_to(&self) -> MessageAddress
Gets the return address for the outbound envelope.
Sourcepub fn recipient(&self) -> &Option<MessageAddress>
pub fn recipient(&self) -> &Option<MessageAddress>
Gets the recipient address for the outbound envelope.
Sourcepub fn reply(
&self,
message: impl ActonMessage + 'static,
) -> Result<(), MessageError>
pub fn reply( &self, message: impl ActonMessage + 'static, ) -> Result<(), MessageError>
Sourcepub async fn send(&self, message: impl ActonMessage + 'static)
pub async fn send(&self, message: impl ActonMessage + 'static)
Trait Implementations§
Source§impl Clone for OutboundEnvelope
impl Clone for OutboundEnvelope
Source§fn clone(&self) -> OutboundEnvelope
fn clone(&self) -> OutboundEnvelope
Returns a copy 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 OutboundEnvelope
impl Debug for OutboundEnvelope
Source§impl Default for OutboundEnvelope
impl Default for OutboundEnvelope
Source§fn default() -> OutboundEnvelope
fn default() -> OutboundEnvelope
Returns the “default value” for a type. Read more
Source§impl Hash for OutboundEnvelope
impl Hash for OutboundEnvelope
Source§impl PartialEq for OutboundEnvelope
impl PartialEq for OutboundEnvelope
impl Eq for OutboundEnvelope
Auto Trait Implementations§
impl Freeze for OutboundEnvelope
impl RefUnwindSafe for OutboundEnvelope
impl Send for OutboundEnvelope
impl Sync for OutboundEnvelope
impl Unpin for OutboundEnvelope
impl UnwindSafe for OutboundEnvelope
Blanket Implementations§
Source§impl<T> ActonMessage for T
impl<T> ActonMessage for T
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