pub struct LocalResponseId { /* private fields */ }Expand description
Connection-scoped u8 key correlating an incoming response with the original request.
Implementations§
Source§impl LocalResponseId
impl LocalResponseId
Sourcepub fn to_req_res_id(&self) -> LocalRequestOrResponseId
pub fn to_req_res_id(&self) -> LocalRequestOrResponseId
Wraps self as a LocalRequestOrResponseId::Response.
Sourcepub fn receive_from_remote(&self) -> LocalRequestId
pub fn receive_from_remote(&self) -> LocalRequestId
Returns the LocalRequestId that the remote assigned to the request this response answers.
Trait Implementations§
Source§impl Clone for LocalResponseId
impl Clone for LocalResponseId
Source§fn clone(&self) -> LocalResponseId
fn clone(&self) -> LocalResponseId
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 Hash for LocalResponseId
impl Hash for LocalResponseId
Source§impl PartialEq for LocalResponseId
impl PartialEq for LocalResponseId
Source§fn eq(&self, other: &LocalResponseId) -> bool
fn eq(&self, other: &LocalResponseId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serde for LocalResponseId
impl Serde for LocalResponseId
impl Copy for LocalResponseId
impl Eq for LocalResponseId
impl StructuralPartialEq for LocalResponseId
Auto Trait Implementations§
impl Freeze for LocalResponseId
impl RefUnwindSafe for LocalResponseId
impl Send for LocalResponseId
impl Sync for LocalResponseId
impl Unpin for LocalResponseId
impl UnsafeUnpin for LocalResponseId
impl UnwindSafe for LocalResponseId
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