pub struct ReadLimits {
pub timeout: Duration,
pub max_bytes: u64,
}Expand description
The bounds on a remote read.
Fields§
§timeout: DurationThe time one read may take.
max_bytes: u64The most bytes a body may hold.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ReadLimits
impl Freeze for ReadLimits
impl Move for ReadLimits
impl RefUnwindSafe for ReadLimits
impl Send for ReadLimits
impl Sync for ReadLimits
impl Unpin for ReadLimits
impl UnsafeUnpin for ReadLimits
impl UnwindSafe for ReadLimits
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