pub struct ResponseSender<'a, T> {
pub response_event_sender: &'a mut EventTx<Response<T>>,
pub request_id: u32,
pub source: EndpointAddr,
pub requester_worker: u16,
}Fields§
§response_event_sender: &'a mut EventTx<Response<T>>§request_id: u32§source: EndpointAddr§requester_worker: u16Implementations§
Source§impl<T: Owned> ResponseSender<'_, T>
impl<T: Owned> ResponseSender<'_, T>
pub async fn send(&mut self, response: impl Encode + Compatible<T>)
Source§impl<O: Owned, E: Owned> ResponseSender<'_, Result<O, E>>
impl<O: Owned, E: Owned> ResponseSender<'_, Result<O, E>>
pub async fn send_ok(&mut self, response: impl Encode + Compatible<O>)
pub async fn send_err(&mut self, response: impl Encode + Compatible<E>)
Auto Trait Implementations§
impl<'a, T> Freeze for ResponseSender<'a, T>
impl<'a, T> !RefUnwindSafe for ResponseSender<'a, T>
impl<'a, T> !Send for ResponseSender<'a, T>
impl<'a, T> !Sync for ResponseSender<'a, T>
impl<'a, T> Unpin for ResponseSender<'a, T>
impl<'a, T> !UnwindSafe for ResponseSender<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more