[][src]Struct body_image_futio::FutioTunables

pub struct FutioTunables { /* fields omitted */ }

An additional set of tuning constants for asynchronous I/O, extending the body_image::Tunables set.

Setters are available via FutioTuner (a builder type).

Implementations

impl FutioTunables[src]

pub fn new() -> FutioTunables[src]

Construct with default values.

pub fn image(&self) -> &Tunables[src]

Return the base (body-image) Tunables.

Default: As per body-image crate defaults.

pub fn stream_item_size(&self) -> usize[src]

Return the maximum stream item buffer size in bytes, when using SplitBodyImage. Default: 512 KiB.

pub fn res_timeout(&self) -> Option<Duration>[src]

Return the maximum initial response timeout interval. Default: None (e.g. unset)

pub fn body_timeout(&self) -> Option<Duration>[src]

Return the maximum streaming body timeout interval. Default: 60 seconds

pub fn blocking_semaphore(&self) -> Option<&'static Semaphore>[src]

Return a Semaphore reference for use in constraining the number of concurrent blocking operations.

Default: None

pub fn blocking_policy(&self) -> BlockingPolicy[src]

Return the policy for any required blocking operations.

Default: BlockingPolicy::Direct

Trait Implementations

impl AsRef<Tunables> for FutioTunables[src]

impl Clone for FutioTunables[src]

impl Debug for FutioTunables[src]

impl Default for FutioTunables[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,