pub struct Actor {
pub id: String,
pub req: Sender<Message>,
pub ctl: Sender<ActorCtl>,
pub handle: JoinHandle<()>,
}Expand description
A handle to an actor.
When the router constructs an actor it will encapsulate that actor’s communication channels and
its thread handle into an Actor. The router maps the ID of the actor to its Actor in its
registry.
Fields§
§id: String§req: Sender<Message>§ctl: Sender<ActorCtl>§handle: JoinHandle<()>Auto Trait Implementations§
impl Freeze for Actor
impl !RefUnwindSafe for Actor
impl Send for Actor
impl Sync for Actor
impl Unpin for Actor
impl !UnwindSafe for Actor
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