pub struct PendingRequest {
pub sid: u8,
pub sent_at: Instant,
pub deadline: Instant,
pub p2_state: P2State,
}Expand description
A request that has been sent and is waiting a response.
Fields§
§sid: u8The request SID byte - used to match incoming responses.
sent_at: InstantThe time at which this request was sent.
deadline: InstantThe deadline by which a response must arrive.
p2_state: P2StateCurrent timeout phase.
Implementations§
Trait Implementations§
Source§impl Clone for PendingRequest
impl Clone for PendingRequest
Source§fn clone(&self) -> PendingRequest
fn clone(&self) -> PendingRequest
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 Debug for PendingRequest
impl Debug for PendingRequest
impl Eq for PendingRequest
Source§impl PartialEq for PendingRequest
impl PartialEq for PendingRequest
impl StructuralPartialEq for PendingRequest
Auto Trait Implementations§
impl Freeze for PendingRequest
impl RefUnwindSafe for PendingRequest
impl Send for PendingRequest
impl Sync for PendingRequest
impl Unpin for PendingRequest
impl UnsafeUnpin for PendingRequest
impl UnwindSafe for PendingRequest
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