pub struct ReqId {
pub inner: usize,
}
Expand description
The ID assigned to a request.
You can use it to check if a response belongs to a request.
The inner number will start at 0
and count up by 1
(wrapping) for every
request sent by a perticular client. You can rely on this behaviour.
Fields§
§inner: usize
Trait Implementations§
source§impl Ord for ReqId
impl Ord for ReqId
source§impl PartialEq for ReqId
impl PartialEq for ReqId
source§impl PartialOrd for ReqId
impl PartialOrd for ReqId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ReqId
impl Eq for ReqId
impl StructuralEq for ReqId
impl StructuralPartialEq for ReqId
Auto Trait Implementations§
impl RefUnwindSafe for ReqId
impl Send for ReqId
impl Sync for ReqId
impl Unpin for ReqId
impl UnwindSafe for ReqId
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