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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more