pub struct ActionCall<A: Actor> { /* private fields */ }Implementations§
Source§impl<A: Actor> ActionCall<A>
impl<A: Actor> ActionCall<A>
pub fn name(&self) -> &str
pub fn conn(&self) -> Option<&ConnCtx<A>>
pub fn scheduled_fire(&self) -> Option<&ScheduledFireInfo>
pub fn raw_args(&self) -> &[u8] ⓘ
Sourcepub fn decode(&self) -> AnyhowResult<A::Action>
pub fn decode(&self) -> AnyhowResult<A::Action>
Decode this call into the actor’s action enum, keyed by action name. Part of the legacy
event-loop API; new code should prefer the trait API. Decodes current-format payloads
and falls back to the legacy binary form, matching Self::decode_as.
pub fn decode_as<T: DeserializeOwned>(&self) -> AnyhowResult<T>
pub fn ok<T: Serialize>(self, value: &T)
pub fn err(self, err: Error)
Trait Implementations§
Auto Trait Implementations§
impl<A> !RefUnwindSafe for ActionCall<A>
impl<A> !Sync for ActionCall<A>
impl<A> !UnwindSafe for ActionCall<A>
impl<A> Freeze for ActionCall<A>
impl<A> Send for ActionCall<A>
impl<A> Unpin for ActionCall<A>
impl<A> UnsafeUnpin for ActionCall<A>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request