pub struct SlidingWindowConfig {
pub size: Duration,
pub slide: Duration,
pub offset: Duration,
}Expand description
Configuration for sliding windows.
Fields§
§size: DurationWindow size
slide: DurationSlide interval
offset: DurationWindow offset (for alignment)
Implementations§
Trait Implementations§
Source§impl Clone for SlidingWindowConfig
impl Clone for SlidingWindowConfig
Source§fn clone(&self) -> SlidingWindowConfig
fn clone(&self) -> SlidingWindowConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SlidingWindowConfig
impl Debug for SlidingWindowConfig
Source§impl<'de> Deserialize<'de> for SlidingWindowConfig
impl<'de> Deserialize<'de> for SlidingWindowConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SlidingWindowConfig
impl RefUnwindSafe for SlidingWindowConfig
impl Send for SlidingWindowConfig
impl Sync for SlidingWindowConfig
impl Unpin for SlidingWindowConfig
impl UnsafeUnpin for SlidingWindowConfig
impl UnwindSafe for SlidingWindowConfig
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