[][src]Struct lib3h_zombie_actor::GhostParentWrapperDyn

pub struct GhostParentWrapperDyn<UserData, RequestToParent: 'static, RequestToParentResponse: 'static, RequestToChild: 'static, RequestToChildResponse: 'static, Error: 'static + Debug> { /* fields omitted */ }

same as above, but takes a trait object child

Methods

impl<UserData, RequestToParent: 'static, RequestToParentResponse: 'static, RequestToChild: 'static, RequestToChildResponse: 'static, Error: 'static + Debug> GhostParentWrapperDyn<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error>[src]

pub fn new(
    actor: Box<dyn GhostActor<RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error>>,
    request_id_prefix: &str
) -> Self
[src]

wrap a GhostActor instance and it's parent channel endpoint.

Trait Implementations

impl<UserData, RequestToParent: 'static, RequestToParentResponse: 'static, RequestToChild: 'static, RequestToChildResponse: 'static, Error: 'static + Debug> GhostCanTrack<UserData, RequestToChild, RequestToChildResponse, RequestToParent, RequestToParentResponse, Error> for GhostParentWrapperDyn<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error>[src]

fn publish(&mut self, span: Span, payload: RequestToChild) -> GhostResult<()>[src]

see GhostContextEndpoint::publish

fn request(
    &mut self,
    span: Span,
    payload: RequestToChild,
    cb: GhostCallback<UserData, RequestToChildResponse, Error>
) -> GhostResult<()>
[src]

see GhostContextEndpoint::request

fn drain_messages(
    &mut self
) -> Vec<GhostMessage<RequestToParent, RequestToChild, RequestToParentResponse, Error>>
[src]

see GhostContextEndpoint::drain_messages

fn process(&mut self, user_data: &mut UserData) -> GhostResult<WorkWasDone>[src]

see GhostContextEndpoint::process and GhostActor::process

Auto Trait Implementations

impl<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error> !Send for GhostParentWrapperDyn<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error>

impl<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error> !Sync for GhostParentWrapperDyn<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error>

impl<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error> Unpin for GhostParentWrapperDyn<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error> where
    Error: Unpin,
    RequestToChildResponse: Unpin,
    RequestToParent: Unpin

impl<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error> !UnwindSafe for GhostParentWrapperDyn<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error>

impl<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error> !RefUnwindSafe for GhostParentWrapperDyn<UserData, RequestToParent, RequestToParentResponse, RequestToChild, RequestToChildResponse, Error>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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