Struct http_body::SizeHint [−][src]
pub struct SizeHint { /* fields omitted */ }
Expand description
A Body
size hint
The default implementation returns:
- 0 for
lower
None
forupper
.
Implementations
Returns a new SizeHint
with both upper and lower bounds set to the
given value.
Returns the lower bound of data that the Body
will yield before
completing.
Returns the upper bound of data the Body
will yield before
completing, or None
if the value is unknown.
Returns the exact size of data that will be yielded if the
lower
and upper
bounds are equal.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SizeHint
impl UnwindSafe for SizeHint
Blanket Implementations
Mutably borrows from an owned value. Read more