pub struct RequestOptions {
pub send: SendOptions,
pub response_timeout: Duration,
pub response_timeout_origin: ResponseTimeoutOrigin,
pub registration_deadline: Option<Instant>,
}Expand description
The sending, registration, and response wait limits for a tracked request.
Fields§
§send: SendOptionsRequest message sending configuration; requests can only use normal sending channels.
response_timeout: DurationTime limit to wait for a response from the selected starting point, default 30 seconds; zero means immediate expiration.
response_timeout_origin: ResponseTimeoutOriginPoint at which response waiting begins; the default is after the request has been written successfully.
registration_deadline: Option<Instant>The absolute deadline for completing the requested registration; None means not to limit the registration phase individually.
This restriction is no longer used after registration is completed, and send.deadline still binds the entire request.
Implementations§
Trait Implementations§
Source§impl Clone for RequestOptions
impl Clone for RequestOptions
Source§impl Debug for RequestOptions
impl Debug for RequestOptions
Auto Trait Implementations§
impl Freeze for RequestOptions
impl RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnsafeUnpin for RequestOptions
impl UnwindSafe 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