[][src]Struct body_image_futio::FutioTuner

pub struct FutioTuner { /* fields omitted */ }

A builder for FutioTunables.

Invariants are asserted in the various setters and finish.

Implementations

impl FutioTuner[src]

pub fn new() -> FutioTuner[src]

Construct with defaults.

pub fn set_image(&mut self, image: Tunables) -> &mut FutioTuner[src]

Set the base body-image Tunables.

pub fn set_stream_item_size(&mut self, size: usize) -> &mut FutioTuner[src]

Set the maximum stream item buffer size in bytes, when using SplitBodyImage.

pub fn set_res_timeout(&mut self, dur: Duration) -> &mut FutioTuner[src]

Set the maximum initial response timeout interval.

pub fn unset_res_timeout(&mut self) -> &mut FutioTuner[src]

Unset (e.g. disable) response timeout

pub fn set_body_timeout(&mut self, dur: Duration) -> &mut FutioTuner[src]

Set the maximum streaming body timeout interval.

pub fn unset_body_timeout(&mut self) -> &mut FutioTuner[src]

Unset (e.g. disable) body timeout

pub fn set_blocking_policy(&mut self, policy: BlockingPolicy) -> &mut FutioTuner[src]

Set policy for blocking. Note that below the highest level interfaces such as request_dialog and fetch, setting this should be combined with using the appropriate Stream or Sink types, e.g. using PermitBodyStream with BlockingPolicy::Permit.

pub fn finish(&self) -> FutioTunables[src]

Finish building, asserting any remaining invariants, and return a new FutioTunables instance.

Trait Implementations

impl Default for FutioTuner[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,