pub struct Builder { /* private fields */ }
Available on crate feature
client
only.Implementations§
source§impl Builder
impl Builder
sourcepub fn grace_period(self, grace_period: Duration) -> Self
pub fn grace_period(self, grace_period: Duration) -> Self
Set the grace period for stalled stream protection.
sourcepub fn set_grace_period(&mut self, grace_period: Option<Duration>) -> &mut Self
pub fn set_grace_period(&mut self, grace_period: Option<Duration>) -> &mut Self
Set the grace period for stalled stream protection.
sourcepub fn is_enabled(self, enabled: bool) -> Self
pub fn is_enabled(self, enabled: bool) -> Self
Set whether stalled stream protection is enabled for both uploads and downloads.
sourcepub fn set_is_enabled(&mut self, enabled: Option<bool>) -> &mut Self
pub fn set_is_enabled(&mut self, enabled: Option<bool>) -> &mut Self
Set whether stalled stream protection is enabled for both uploads and downloads.
sourcepub fn upload_enabled(self, enabled: bool) -> Self
pub fn upload_enabled(self, enabled: bool) -> Self
Set whether stalled stream protection is enabled for upload streams.
sourcepub fn set_upload_enabled(&mut self, enabled: Option<bool>) -> &mut Self
pub fn set_upload_enabled(&mut self, enabled: Option<bool>) -> &mut Self
Set whether stalled stream protection is enabled for upload streams.
sourcepub fn download_enabled(self, enabled: bool) -> Self
pub fn download_enabled(self, enabled: bool) -> Self
Set whether stalled stream protection is enabled for download streams.
sourcepub fn set_download_enabled(&mut self, enabled: Option<bool>) -> &mut Self
pub fn set_download_enabled(&mut self, enabled: Option<bool>) -> &mut Self
Set whether stalled stream protection is enabled for download streams.
sourcepub fn build(self) -> StalledStreamProtectionConfig
pub fn build(self) -> StalledStreamProtectionConfig
Build the config.
Trait Implementations§
source§impl From<StalledStreamProtectionConfig> for Builder
impl From<StalledStreamProtectionConfig> for Builder
source§fn from(config: StalledStreamProtectionConfig) -> Self
fn from(config: StalledStreamProtectionConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.