pub struct Backoffs(/* private fields */);Expand description
The renditions whose decoders failed, and until when each is left alone.
Implementations§
Source§impl Backoffs
impl Backoffs
Sourcepub fn excluded(&self, now: Instant) -> BTreeSet<String>
pub fn excluded(&self, now: Instant) -> BTreeSet<String>
Returns the renditions left alone at now.
Sourcepub fn is_excluded(&self, rendition: &str, now: Instant) -> bool
pub fn is_excluded(&self, rendition: &str, now: Instant) -> bool
Reports whether rendition is left alone at now.
Sourcepub fn any_excluded(&self, now: Instant) -> bool
pub fn any_excluded(&self, now: Instant) -> bool
Reports whether any rendition is left alone at now.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backoffs
impl RefUnwindSafe for Backoffs
impl Send for Backoffs
impl Sync for Backoffs
impl Unpin for Backoffs
impl UnsafeUnpin for Backoffs
impl UnwindSafe for Backoffs
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