[][src]Struct tower_web::util::buf_stream::size_hint::Builder

pub struct Builder { /* fields omitted */ }

Build a SizeHint

Methods

impl Builder[src]

pub fn new() -> Builder[src]

Create a new Builder configured with default values.

pub fn available(&mut self, val: usize) -> &mut Self[src]

Sets the available hint value.

pub fn lower(&mut self, val: usize) -> &mut Self[src]

Sets the lower hint value.

Panics

This function panics if val is smaller than available.

pub fn upper(&mut self, val: usize) -> &mut Self[src]

Set the upper hint value.

Panics

This function panics if val is smaller than lower.

pub fn build(&self) -> SizeHint[src]

Build the SizeHint

Trait Implementations

impl Debug for Builder[src]

Auto Trait Implementations

impl Send for Builder

impl Sync for Builder

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T