pub struct RequestOptions {
pub cancel: Option<CancellationToken>,
pub timeout: Option<Duration>,
pub on_progress: Option<ProgressListener>,
}Expand description
Per-request options.
Fields§
§cancel: Option<CancellationToken>Cancels the request and notifies the server.
timeout: Option<Duration>Overrides the client’s timeout. Progress notifications restart it.
on_progress: Option<ProgressListener>Asks for progress notifications and receives them.
Trait Implementations§
Source§impl Clone for RequestOptions
impl Clone for RequestOptions
Auto Trait Implementations§
impl !RefUnwindSafe for RequestOptions
impl !UnwindSafe for RequestOptions
impl Freeze for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnsafeUnpin for RequestOptions
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