pub struct DynActor { /* private fields */ }Expand description
A dynamic actor: every inbound call/cast term is run through reply and the
resulting term is returned (calls) or discarded (casts).
Implementations§
Trait Implementations§
Source§impl Actor for DynActor
impl Actor for DynActor
Source§type Call = WireTerm
type Call = WireTerm
Request type delivered to
Actor::handle_call.Source§type Reply = WireTerm
type Reply = WireTerm
Reply type returned from
Actor::handle_call.Source§type Cast = WireTerm
type Cast = WireTerm
Message type delivered to
Actor::handle_cast.Source§fn handle_call(
&mut self,
request: WireTerm,
_ctx: &mut ActorContext<'_, '_>,
) -> WireTerm
fn handle_call( &mut self, request: WireTerm, _ctx: &mut ActorContext<'_, '_>, ) -> WireTerm
Handle a request and return the reply (the adapter routes it back to the
caller by ref). Read more
Source§fn handle_cast(&mut self, request: WireTerm, _ctx: &mut ActorContext<'_, '_>)
fn handle_cast(&mut self, request: WireTerm, _ctx: &mut ActorContext<'_, '_>)
Handle a fire-and-forget message. No reply is sent.
Auto Trait Implementations§
impl !RefUnwindSafe for DynActor
impl !UnwindSafe for DynActor
impl Freeze for DynActor
impl Send for DynActor
impl Sync for DynActor
impl Unpin for DynActor
impl UnsafeUnpin for DynActor
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