[−][src]Struct lib3h_zombie_actor::prelude::GhostMessage
GhostContextEndpoints allow you to drain these incoming GhostMessage
s
A GhostMessage contains the incoming request, as well as a hook to
allow a response to automatically be returned.
Methods
impl<RequestToSelf: 'static, RequestToOther: 'static, RequestToSelfResponse: 'static, Error: 'static + Debug> GhostMessage<RequestToSelf, RequestToOther, RequestToSelfResponse, Error>
[src]
pub fn test_constructor() -> Self
[src]
pub fn take_message(&mut self) -> Option<RequestToSelf>
[src]
most often you will want to consume the contents of the request using take prevents a clone
pub fn put_message(&mut self, msg: RequestToSelf)
[src]
pub fn respond(
self,
payload: Result<RequestToSelfResponse, Error>
) -> GhostResult<()>
[src]
self,
payload: Result<RequestToSelfResponse, Error>
) -> GhostResult<()>
send a response back to the origin of this request
pub fn is_request(&self) -> bool
[src]
pub fn span(&self) -> &Span
[src]
pub fn backtrace(&self) -> &Backtwrap
[src]
Trait Implementations
impl<RequestToSelf: 'static, RequestToOther: 'static, RequestToSelfResponse: 'static, Error: 'static> Debug for GhostMessage<RequestToSelf, RequestToOther, RequestToSelfResponse, Error>
[src]
Auto Trait Implementations
impl<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> Send for GhostMessage<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> where
Error: Send,
MessageToOther: Send,
MessageToSelf: Send,
MessageToSelfResponse: Send,
Error: Send,
MessageToOther: Send,
MessageToSelf: Send,
MessageToSelfResponse: Send,
impl<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> Sync for GhostMessage<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> where
Error: Send,
MessageToOther: Send,
MessageToSelf: Sync,
MessageToSelfResponse: Send,
Error: Send,
MessageToOther: Send,
MessageToSelf: Sync,
MessageToSelfResponse: Send,
impl<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> Unpin for GhostMessage<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> where
MessageToSelf: Unpin,
MessageToSelf: Unpin,
impl<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> UnwindSafe for GhostMessage<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> where
MessageToSelf: UnwindSafe,
MessageToSelf: UnwindSafe,
impl<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> RefUnwindSafe for GhostMessage<MessageToSelf, MessageToOther, MessageToSelfResponse, Error> where
MessageToSelf: RefUnwindSafe,
MessageToSelf: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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,