pub struct PendingRequest {
pub id: RequestId,
pub method: String,
pub sent_at: Instant,
pub timeout: Duration,
pub response_tx: Sender<Result<Value>>,
}Expand description
A pending request awaiting a response
Fields§
§id: RequestIdRequest ID
method: StringRequest method name
sent_at: InstantTime when request was sent
timeout: DurationRequest timeout
response_tx: Sender<Result<Value>>Response channel sender
Auto Trait Implementations§
impl Freeze for PendingRequest
impl !RefUnwindSafe for PendingRequest
impl Send for PendingRequest
impl Sync for PendingRequest
impl Unpin 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