[−][src]Function lib3h_zombie_actor::prelude::create_ghost_channel
pub fn create_ghost_channel<RequestToParent: 'static, RequestToParentResponse: 'static, RequestToChild: 'static, RequestToChildResponse: 'static, Error: 'static + Debug>(
) -> (GhostEndpoint<RequestToChild, RequestToChildResponse, RequestToParent, RequestToParentResponse, Error>, GhostEndpoint<RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error>)
We want to create a two-way communication channel between a GhostActor
and its parent. create_ghost_channel
will output two GhostEndpoint
structures, the first one is the parent side, the second is the child's.