[][src]Struct riker::kernel::KernelRef

pub struct KernelRef<Msg: Message> {
    pub kernel_tx: Sender<KernelMsg<Msg>>,
    pub timer_tx: Sender<Job<Msg>>,


kernel_tx: Sender<KernelMsg<Msg>>timer_tx: Sender<Job<Msg>>


impl<Msg> KernelRef<Msg> where
    Msg: Message

pub fn dispatch(
    msg: Envelope<Msg>,
    mbox: &MailboxSender<Msg>
) -> MsgResult<Envelope<Msg>>

pub fn dispatch_sys(
    msg: SystemEnvelope<Msg>,
    mbox: &MailboxSender<Msg>
) -> MsgResult<SystemEnvelope<Msg>>

pub fn schedule_actor<Mbs>(&self, mbox: &Mbs) where
    Mbs: MailboxSchedule<Msg = Msg>, 

pub fn create_actor(
    props: BoxActorProd<Msg>,
    name: &str,
    parent: &ActorRef<Msg>
) -> Result<ActorRef<Msg>, CreateError>

pub fn park_actor(&self, uid: ActorId, actor: Option<BoxActor<Msg>>)[src]

pub fn terminate_actor(&self, uid: ActorId)[src]

pub fn restart_actor(&self, uid: ActorId)[src]

pub fn stop_kernel(&self)[src]

pub fn execute<F>(&self, f: F) -> RemoteHandle<F::Output> where
    F: Future + Send + 'static,
    <F as Future>::Output: Send

pub fn schedule(&self, job: Job<Msg>)[src]

Trait Implementations

impl<Msg: Message> Send for KernelRef<Msg>[src]

impl<Msg: Message> Sync for KernelRef<Msg>[src]

impl<Msg: Clone + Message> Clone for KernelRef<Msg>[src]

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.