pub struct ThrottleIntervalConfig {
pub period: Duration,
pub edge: IntervalEdge,
}Fields§
§period: DurationThrottling period
The minimum interval between subsequent items that limits the maximum frequency of the output stream.
edge: IntervalEdgeInterval edge gate
Controls whether the pending item of the stream is yielded immediately or after the interval has elapsed.
Trait Implementations§
Source§impl Clone for ThrottleIntervalConfig
impl Clone for ThrottleIntervalConfig
Source§fn clone(&self) -> ThrottleIntervalConfig
fn clone(&self) -> ThrottleIntervalConfig
Returns a copy 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 ThrottleIntervalConfig
impl Debug for ThrottleIntervalConfig
Source§impl PartialEq for ThrottleIntervalConfig
impl PartialEq for ThrottleIntervalConfig
impl Eq for ThrottleIntervalConfig
impl StructuralPartialEq for ThrottleIntervalConfig
Auto Trait Implementations§
impl Freeze for ThrottleIntervalConfig
impl RefUnwindSafe for ThrottleIntervalConfig
impl Send for ThrottleIntervalConfig
impl Sync for ThrottleIntervalConfig
impl Unpin for ThrottleIntervalConfig
impl UnwindSafe for ThrottleIntervalConfig
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