[][src]Struct lib3h_zombie_actor::GhostContextEndpoint

pub struct GhostContextEndpoint<UserData, RequestToOther: 'static, RequestToOtherResponse: 'static, RequestToSelf: 'static, RequestToSelfResponse: 'static, Error: 'static + Debug> { /* fields omitted */ }

an expanded endpoint usable to send/receive requests/responses/events see GhostEndpoint::as_context_endpoint_builder for additional details

Trait Implementations

impl<UserData, RequestToOther: 'static, RequestToOtherResponse: 'static, RequestToSelf: 'static, RequestToSelfResponse: 'static, Error: 'static + Debug> GhostCanTrack<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> for GhostContextEndpoint<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error>[src]

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

publish an event to the remote side, not expecting a response

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

make a request of the other side. When a response is sent back to us the callback will be invoked.

fn request_options(
    &mut self,
    span: Span,
    payload: RequestToOther,
    cb: GhostCallback<UserData, RequestToOtherResponse, Error>,
    options: GhostTrackRequestOptions
) -> GhostResult<()>
[src]

make a request of the other side. When a response is sent back to us the callback will be invoked, override the default timeout.

fn drain_messages(
    &mut self
) -> Vec<GhostMessage<RequestToSelf, RequestToOther, RequestToSelfResponse, Error>>
[src]

fetch any messages (requests or events) sent to us from the other side

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

check for pending responses timeouts or incoming messages

Auto Trait Implementations

impl<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> !RefUnwindSafe for GhostContextEndpoint<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error>

impl<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> !Send for GhostContextEndpoint<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error>

impl<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> !Sync for GhostContextEndpoint<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error>

impl<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> Unpin for GhostContextEndpoint<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> where
    Error: Unpin,
    RequestToOtherResponse: Unpin,
    RequestToSelf: Unpin

impl<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> !UnwindSafe for GhostContextEndpoint<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error>

Blanket Implementations

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

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

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

impl<T> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,