pub struct Op<T> {
pub req: HttpRequest,
pub parse: fn(CommandResponse) -> Result<T>,
}Expand description
A complete operation: the request to send plus the parser that turns the box’s response envelope into a typed value. Net handles build these; the sync/async clients only execute them.
Fields§
§req: HttpRequestThe request to send.
parse: fn(CommandResponse) -> Result<T>Parser applied to the successful response envelope.
Auto Trait Implementations§
impl<T> Freeze for Op<T>
impl<T> RefUnwindSafe for Op<T>
impl<T> Send for Op<T>
impl<T> Sync for Op<T>
impl<T> Unpin for Op<T>
impl<T> UnsafeUnpin for Op<T>
impl<T> UnwindSafe for Op<T>
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