[−][src]Struct lib3h_zombie_actor::GhostContextEndpoint
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]
&mut self,
span: Span,
payload: RequestToOther,
cb: GhostCallback<UserData, RequestToOtherResponse, Error>
) -> GhostResult<()>
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]
&mut self,
span: Span,
payload: RequestToOther,
cb: GhostCallback<UserData, RequestToOtherResponse, Error>,
options: GhostTrackRequestOptions
) -> GhostResult<()>
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]
&mut self
) -> Vec<GhostMessage<RequestToSelf, RequestToOther, RequestToSelfResponse, Error>>
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> !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,
Error: Unpin,
RequestToOtherResponse: Unpin,
RequestToSelf: Unpin,
impl<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> !UnwindSafe for GhostContextEndpoint<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error>
impl<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error> !RefUnwindSafe for GhostContextEndpoint<UserData, RequestToOther, RequestToOtherResponse, RequestToSelf, RequestToSelfResponse, Error>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,