pub struct ResponseSendKey<S: Response> { /* private fields */ }Expand description
Typed token held by the sender to identify a pending request when its response arrives.
Implementations§
Source§impl<S: Response> ResponseSendKey<S>
impl<S: Response> ResponseSendKey<S>
Sourcepub fn new(id: GlobalResponseId) -> Self
pub fn new(id: GlobalResponseId) -> Self
Creates a ResponseSendKey tied to the given global response ID.
Sourcepub fn response_id(&self) -> GlobalResponseId
pub fn response_id(&self) -> GlobalResponseId
Returns the global response ID carried by this key.
Trait Implementations§
Source§impl<S: Clone + Response> Clone for ResponseSendKey<S>
impl<S: Clone + Response> Clone for ResponseSendKey<S>
Source§fn clone(&self) -> ResponseSendKey<S>
fn clone(&self) -> ResponseSendKey<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: PartialEq + Response> PartialEq for ResponseSendKey<S>
impl<S: PartialEq + Response> PartialEq for ResponseSendKey<S>
Source§fn eq(&self, other: &ResponseSendKey<S>) -> bool
fn eq(&self, other: &ResponseSendKey<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<S: Eq + Response> Eq for ResponseSendKey<S>
impl<S: Response> StructuralPartialEq for ResponseSendKey<S>
Auto Trait Implementations§
impl<S> Freeze for ResponseSendKey<S>
impl<S> RefUnwindSafe for ResponseSendKey<S>where
S: RefUnwindSafe,
impl<S> Send for ResponseSendKey<S>
impl<S> Sync for ResponseSendKey<S>
impl<S> Unpin for ResponseSendKey<S>where
S: Unpin,
impl<S> UnsafeUnpin for ResponseSendKey<S>
impl<S> UnwindSafe for ResponseSendKey<S>where
S: UnwindSafe,
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