pub struct TransportLimits {
pub connect_timeout: Duration,
pub call_timeout: Duration,
pub artifact_timeout: Duration,
pub max_body: usize,
pub max_artifact: u64,
}Expand description
Timeouts and caps of one link.
Fields§
§connect_timeout: DurationTCP and TLS connect.
call_timeout: DurationWhole call, for every path but the artifact one.
artifact_timeout: DurationWhole call for GET /licence/v1/artifact/.. (64 MiB at the Seed’s
4 MiB/s takes 16 s).
max_body: usizeLargest body read for every path but the artifact one.
max_artifact: u64Largest artifact body read.
Trait Implementations§
Source§impl Clone for TransportLimits
impl Clone for TransportLimits
Source§impl Debug for TransportLimits
impl Debug for TransportLimits
Auto Trait Implementations§
impl Freeze for TransportLimits
impl RefUnwindSafe for TransportLimits
impl Send for TransportLimits
impl Sync for TransportLimits
impl Unpin for TransportLimits
impl UnsafeUnpin for TransportLimits
impl UnwindSafe for TransportLimits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more