Struct libp2p::request_response::RequestId
source · pub struct RequestId(_);
Expand description
The ID of an inbound or outbound request.
Note: RequestId
’s uniqueness is only guaranteed between two
inbound and likewise between two outbound requests. There is no
uniqueness guarantee in a set of both inbound and outbound
RequestId
s nor in a set of inbound or outbound requests
originating from different RequestResponse
behaviours.
Trait Implementations§
source§impl PartialEq<RequestId> for RequestId
impl PartialEq<RequestId> for RequestId
impl Copy for RequestId
impl Eq for RequestId
impl StructuralEq for RequestId
impl StructuralPartialEq for RequestId
Auto Trait Implementations§
impl RefUnwindSafe for RequestId
impl Send for RequestId
impl Sync for RequestId
impl Unpin for RequestId
impl UnwindSafe for RequestId
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