pub struct BatchedRequest {
pub args: Vec<u8>,
pub method: String,
pub response_tx: Sender<Result<Vec<u8>, String>>,
pub queued_at: Instant,
}Expand description
A single batched request.
Fields§
§args: Vec<u8>Request arguments.
method: StringMethod name.
response_tx: Sender<Result<Vec<u8>, String>>Response sender.
queued_at: InstantTimestamp when queued.
Trait Implementations§
Source§impl Clone for BatchedRequest
impl Clone for BatchedRequest
Source§fn clone(&self) -> BatchedRequest
fn clone(&self) -> BatchedRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BatchedRequest
impl RefUnwindSafe for BatchedRequest
impl Send for BatchedRequest
impl Sync for BatchedRequest
impl Unpin for BatchedRequest
impl UnsafeUnpin for BatchedRequest
impl UnwindSafe for BatchedRequest
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