pub struct Builder { /* private fields */ }
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
)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>
Creates a shared type from an unshared type.