pub struct EventSourcedMessage<C, S>(/* private fields */);Expand description
A message accepted by an event-sourced behavior’s single ordered ingress.
Construct domain-command messages with Self::command. Runtime control
messages are intentionally private so callers cannot bypass handle APIs.
Implementations§
Source§impl<C, S> EventSourcedMessage<C, S>
impl<C, S> EventSourcedMessage<C, S>
Auto Trait Implementations§
impl<C, S> !RefUnwindSafe for EventSourcedMessage<C, S>
impl<C, S> !UnwindSafe for EventSourcedMessage<C, S>
impl<C, S> Freeze for EventSourcedMessage<C, S>where
RuntimeMessage<C, S>: Freeze,
impl<C, S> Send for EventSourcedMessage<C, S>where
RuntimeMessage<C, S>: Send,
impl<C, S> Sync for EventSourcedMessage<C, S>where
RuntimeMessage<C, S>: Sync,
impl<C, S> Unpin for EventSourcedMessage<C, S>where
RuntimeMessage<C, S>: Unpin,
impl<C, S> UnsafeUnpin for EventSourcedMessage<C, S>where
RuntimeMessage<C, S>: UnsafeUnpin,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<S> IntoEventHandlerResult<S> for S
impl<S> IntoEventHandlerResult<S> for S
Source§fn into_event_handler_result(self) -> Result<S, PersistenceError>
fn into_event_handler_result(self) -> Result<S, PersistenceError>
Converts this handler output into the runtime result.
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage