pub struct ReplyEffect<C, E, S>(/* private fields */);Expand description
An effect that statically records either a reply or an explicit no-reply decision.
Implementations§
Source§impl<C, E, S> ReplyEffect<C, E, S>
impl<C, E, S> ReplyEffect<C, E, S>
Sourcepub fn then_run<F>(self, callback: F) -> Self
pub fn then_run<F>(self, callback: F) -> Self
Runs a callback with the resulting state while preserving reply enforcement.
Sourcepub fn then_unstash_all(self) -> Self
pub fn then_unstash_all(self) -> Self
Starts a bounded drain of the current manual stash.
Auto Trait Implementations§
impl<C, E, S> !RefUnwindSafe for ReplyEffect<C, E, S>
impl<C, E, S> !Sync for ReplyEffect<C, E, S>
impl<C, E, S> !UnwindSafe for ReplyEffect<C, E, S>
impl<C, E, S> Freeze for ReplyEffect<C, E, S>
impl<C, E, S> Send for ReplyEffect<C, E, S>
impl<C, E, S> Unpin for ReplyEffect<C, E, S>
impl<C, E, S> UnsafeUnpin for ReplyEffect<C, E, S>where
Effect<C, E, 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