pub struct RequestKey {
pub peer_id: PeerId,
pub request_id: RequestId,
}Expand description
Composite key for tracking pending requests. Correlates responses by (peer_id, request_id) rather than by content.
Fields§
§peer_id: PeerId§request_id: RequestIdImplementations§
Trait Implementations§
Source§impl Clone for RequestKey
impl Clone for RequestKey
Source§fn clone(&self) -> RequestKey
fn clone(&self) -> RequestKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestKey
impl Debug for RequestKey
Source§impl Hash for RequestKey
impl Hash for RequestKey
Source§impl PartialEq for RequestKey
impl PartialEq for RequestKey
impl Eq for RequestKey
impl StructuralPartialEq for RequestKey
Auto Trait Implementations§
impl Freeze for RequestKey
impl RefUnwindSafe for RequestKey
impl Send for RequestKey
impl Sync for RequestKey
impl Unpin for RequestKey
impl UnsafeUnpin for RequestKey
impl UnwindSafe for RequestKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.