[−][src]Struct body_image_futio::FutioTuner
A builder for FutioTunables
.
Invariants are asserted in the various setters and finish
.
Methods
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_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
impl !RefUnwindSafe for FutioTuner
impl Send for FutioTuner
impl Sync for FutioTuner
impl Unpin for FutioTuner
impl !UnwindSafe for FutioTuner
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,