use crate::actors::abstract_actor_system::AbstractActorSystem;
use crate::actors::abstract_actor_ref::AbstractActorRef;
use crate::common::tsafe::TSafe;
pub struct ActorContext {
pub sender: Box<AbstractActorRef + Send>,
pub self_: Box<AbstractActorRef + Send>,
pub system: TSafe<AbstractActorSystem + Send>
}
impl ActorContext {
pub fn new(sender: Box<AbstractActorRef + Send>, self_: Box<AbstractActorRef + Send>, system: TSafe<AbstractActorSystem + Send>) -> ActorContext {
ActorContext {
sender,
self_,
system
}
}
}