pub struct ThrottleOpts {
pub leading: bool,
pub trailing: bool,
}Expand description
Options for throttle.
Fields§
§leading: boolEmit immediately at the leading edge of each window (default: true).
trailing: boolEmit the latest value at the trailing edge of each window (default: false).
Trait Implementations§
Source§impl Clone for ThrottleOpts
impl Clone for ThrottleOpts
Source§fn clone(&self) -> ThrottleOpts
fn clone(&self) -> ThrottleOpts
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 ThrottleOpts
impl Debug for ThrottleOpts
Source§impl Default for ThrottleOpts
impl Default for ThrottleOpts
impl Copy for ThrottleOpts
Auto Trait Implementations§
impl Freeze for ThrottleOpts
impl RefUnwindSafe for ThrottleOpts
impl Send for ThrottleOpts
impl Sync for ThrottleOpts
impl Unpin for ThrottleOpts
impl UnsafeUnpin for ThrottleOpts
impl UnwindSafe for ThrottleOpts
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