pub struct IncomingDispatch { /* private fields */ }Expand description
Incoming message with entry point and previous execution context, if exists.
Implementations§
Source§impl IncomingDispatch
impl IncomingDispatch
Sourcepub fn new(
kind: DispatchKind,
message: IncomingMessage,
context: Option<ContextStore>,
) -> Self
pub fn new( kind: DispatchKind, message: IncomingMessage, context: Option<ContextStore>, ) -> Self
Create new IncomingDispatch.
Sourcepub fn into_stored(
self,
destination: ActorId,
context: ContextStore,
) -> StoredDispatch
pub fn into_stored( self, destination: ActorId, context: ContextStore, ) -> StoredDispatch
Convert IncomingDispatch into gasless StoredDispatch with updated (or recently set) context.
Sourcepub fn into_parts(self) -> (DispatchKind, IncomingMessage, Option<ContextStore>)
pub fn into_parts(self) -> (DispatchKind, IncomingMessage, Option<ContextStore>)
Decompose IncomingDispatch for it’s components: DispatchKind, IncomingMessage and Option<ContextStore>.
Sourcepub fn kind(&self) -> DispatchKind
pub fn kind(&self) -> DispatchKind
Entry point for the message.
Sourcepub fn message(&self) -> &IncomingMessage
pub fn message(&self) -> &IncomingMessage
Dispatch message reference.
Sourcepub fn context(&self) -> &Option<ContextStore>
pub fn context(&self) -> &Option<ContextStore>
Previous execution context reference, if exists.
Sourcepub fn context_mut(&mut self) -> &mut Option<ContextStore>
pub fn context_mut(&mut self) -> &mut Option<ContextStore>
Previous execution context mutable reference, if exists.
Methods from Deref<Target = IncomingMessage>§
Sourcepub fn details(&self) -> Option<MessageDetails>
pub fn details(&self) -> Option<MessageDetails>
Message details.
Sourcepub fn is_error_reply(&self) -> bool
pub fn is_error_reply(&self) -> bool
Returns bool defining if message is error reply.
Trait Implementations§
Source§impl Clone for IncomingDispatch
impl Clone for IncomingDispatch
Source§fn clone(&self) -> IncomingDispatch
fn clone(&self) -> IncomingDispatch
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 IncomingDispatch
impl Debug for IncomingDispatch
Source§impl Deref for IncomingDispatch
impl Deref for IncomingDispatch
Source§impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)
impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)
Source§fn from(
dispatch: IncomingDispatch,
) -> (DispatchKind, IncomingMessage, Option<ContextStore>)
fn from( dispatch: IncomingDispatch, ) -> (DispatchKind, IncomingMessage, Option<ContextStore>)
Converts to this type from the input type.
Source§impl PartialEq for IncomingDispatch
impl PartialEq for IncomingDispatch
impl Eq for IncomingDispatch
impl StructuralPartialEq for IncomingDispatch
Auto Trait Implementations§
impl Freeze for IncomingDispatch
impl RefUnwindSafe for IncomingDispatch
impl Send for IncomingDispatch
impl Sync for IncomingDispatch
impl Unpin for IncomingDispatch
impl UnwindSafe for IncomingDispatch
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