pub struct BackoffGuard<'a> { /* private fields */ }Expand description
One batch’s contribution to spate_sink_retry_backoff_seconds, held for the
duration of a backoff sleep. Returned by
SinkShardMetrics::backing_off; dropping it — including by the write
task being aborted mid-sleep — withdraws this batch’s step and republishes
the shard’s max, 0 when it was the last one sleeping.
Trait Implementations§
Source§impl<'a> Debug for BackoffGuard<'a>
impl<'a> Debug for BackoffGuard<'a>
Source§impl Drop for BackoffGuard<'_>
impl Drop for BackoffGuard<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BackoffGuard<'a>
impl<'a> !UnwindSafe for BackoffGuard<'a>
impl<'a> Freeze for BackoffGuard<'a>
impl<'a> Send for BackoffGuard<'a>
impl<'a> Sync for BackoffGuard<'a>
impl<'a> Unpin for BackoffGuard<'a>
impl<'a> UnsafeUnpin for BackoffGuard<'a>
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