pub struct CameraRetry {
pub retries: u32,
pub backoff: Duration,
}Expand description
How often, and how far apart, a fetch the camera answered with a server error is made again.
The defaults bound what a camera failing every attempt costs a scheduled check: with the vision adapter’s own per-fetch timeout of five seconds, four attempts and three waits are at most about 21.5 s.
Fields§
§retries: u32How many more times a fetch is made after its first is answered with a server error.
backoff: DurationHow long after a server error the next attempt is made.
Trait Implementations§
Source§impl Clone for CameraRetry
impl Clone for CameraRetry
impl Copy for CameraRetry
Source§impl Debug for CameraRetry
impl Debug for CameraRetry
Source§impl Default for CameraRetry
impl Default for CameraRetry
impl Eq for CameraRetry
Source§impl PartialEq for CameraRetry
impl PartialEq for CameraRetry
impl StructuralPartialEq for CameraRetry
Auto Trait Implementations§
impl Forget for CameraRetry
impl Freeze for CameraRetry
impl Move for CameraRetry
impl RefUnwindSafe for CameraRetry
impl Send for CameraRetry
impl Sync for CameraRetry
impl Unpin for CameraRetry
impl UnsafeUnpin for CameraRetry
impl UnwindSafe for CameraRetry
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