pub struct CountBasedWindowConfig {
pub sliding_window_size: usize,
}Expand description
CountBased 滑动窗口专有配置。
仅在 WindowConfig::CountBased 时生效。
Fields§
§sliding_window_size: usize滑动窗口大小(调用次数)。默认: 20
Trait Implementations§
Source§impl Clone for CountBasedWindowConfig
impl Clone for CountBasedWindowConfig
Source§fn clone(&self) -> CountBasedWindowConfig
fn clone(&self) -> CountBasedWindowConfig
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 CountBasedWindowConfig
impl Debug for CountBasedWindowConfig
Source§impl Default for CountBasedWindowConfig
impl Default for CountBasedWindowConfig
Source§impl From<CountBasedWindowConfig> for WindowConfig
impl From<CountBasedWindowConfig> for WindowConfig
Source§fn from(cfg: CountBasedWindowConfig) -> Self
fn from(cfg: CountBasedWindowConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CountBasedWindowConfig
impl RefUnwindSafe for CountBasedWindowConfig
impl Send for CountBasedWindowConfig
impl Sync for CountBasedWindowConfig
impl Unpin for CountBasedWindowConfig
impl UnsafeUnpin for CountBasedWindowConfig
impl UnwindSafe for CountBasedWindowConfig
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