pub struct RequestOptions {
pub timeout: Timeout,
pub traffic_class: TrafficClass,
}Expand description
协议身份、选项和静态 marker 契约。 创建请求时固定的本地选项。
Fields§
§timeout: Timeout本次合作式期限,默认 Unlimited。
traffic_class: TrafficClass使用的独立容量,默认 Normal。
Trait Implementations§
Source§impl Clone for RequestOptions
impl Clone for RequestOptions
impl Copy 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