[][src]Trait lib3h_zombie_actor::GhostActor

pub trait GhostActor<RequestToParent: 'static, RequestToParentResponse: 'static, RequestToChild: 'static, RequestToChildResponse: 'static, Error: 'static + Debug> {
    fn take_parent_endpoint(
        &mut self
    ) -> Option<GhostEndpoint<RequestToChild, RequestToChildResponse, RequestToParent, RequestToParentResponse, Error>>; fn process(&mut self) -> GhostResult<WorkWasDone> { ... }
fn process_concrete(&mut self) -> GhostResult<WorkWasDone> { ... } }

Required methods

fn take_parent_endpoint(
    &mut self
) -> Option<GhostEndpoint<RequestToChild, RequestToChildResponse, RequestToParent, RequestToParentResponse, Error>>

our parent gets a reference to the parent side of our channel

Loading content...

Provided methods

fn process(&mut self) -> GhostResult<WorkWasDone>

our parent will call this process function

fn process_concrete(&mut self) -> GhostResult<WorkWasDone>

we, as a ghost actor implement this, it will get called from process after the subconscious process items have run

Loading content...

Implementors

Loading content...