pub struct PrewarmConfig {
pub auto_prewarm: bool,
pub progressive: Option<ProgressiveConfig>,
}Expand description
预热配置
Fields§
§auto_prewarm: bool是否自动预热
progressive: Option<ProgressiveConfig>渐进式配置(None 表示一次性预热)
Implementations§
Source§impl PrewarmConfig
impl PrewarmConfig
pub fn new() -> Self
pub fn with_auto_prewarm(self, enabled: bool) -> Self
pub fn with_progressive(self, config: ProgressiveConfig) -> Self
Trait Implementations§
Source§impl Clone for PrewarmConfig
impl Clone for PrewarmConfig
Source§fn clone(&self) -> PrewarmConfig
fn clone(&self) -> PrewarmConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrewarmConfig
impl Debug for PrewarmConfig
Source§impl Default for PrewarmConfig
impl Default for PrewarmConfig
Source§fn default() -> PrewarmConfig
fn default() -> PrewarmConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrewarmConfig
impl RefUnwindSafe for PrewarmConfig
impl Send for PrewarmConfig
impl Sync for PrewarmConfig
impl Unpin for PrewarmConfig
impl UnsafeUnpin for PrewarmConfig
impl UnwindSafe for PrewarmConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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