pub struct FlushInterval { /* private fields */ }
Implementations§
Source§impl FlushInterval
impl FlushInterval
pub fn new() -> Self
pub fn get_current_flush_interval_ms(&self) -> u64
pub fn mark_scheduled_flush_attempt(&self)
pub fn adjust_for_success(&self)
pub fn adjust_for_failure(&self)
pub fn has_cooled_from_most_recent_failure(&self) -> bool
pub fn has_waited_max_allowed_interval(&self) -> bool
pub fn has_completely_recovered_from_backoff(&self) -> bool
Trait Implementations§
Source§impl Default for FlushInterval
impl Default for FlushInterval
Source§fn default() -> FlushInterval
fn default() -> FlushInterval
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FlushInterval
impl RefUnwindSafe for FlushInterval
impl Send for FlushInterval
impl Sync for FlushInterval
impl Unpin for FlushInterval
impl UnwindSafe for FlushInterval
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