pub struct CameraRetryPayload {
pub attempt: u32,
pub attempts: u32,
pub status: u16,
pub excerpt: String,
pub backoff_ms: u64,
}Expand description
The camera answered a request for a frame with a server error, and is being asked again.
A camera server that could not take a frame this time — go2rtc answers
500 with exit status 69 — is often one that will take the next, so a
fetch answered 500 to 599 is made again after a short wait, a bounded
number of times. One of these is written down for each such answer, as it
happens, before the wait; a fetch whose every attempt was refused is
recorded as a port failure only once the attempts run out.
Fields§
§attempt: u32Which attempt the camera refused, counting from one.
attempts: u32How many attempts the fetch may make in all.
status: u16The HTTP status the camera answered.
excerpt: StringThe start of what the camera answered with, as text.
backoff_ms: u64How long the fetch waits before its next attempt, in milliseconds.
Trait Implementations§
Source§impl Clone for CameraRetryPayload
impl Clone for CameraRetryPayload
Source§impl Debug for CameraRetryPayload
impl Debug for CameraRetryPayload
Source§impl<'de> Deserialize<'de> for CameraRetryPayload
impl<'de> Deserialize<'de> for CameraRetryPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CameraRetryPayload
Source§impl EventPayload for CameraRetryPayload
impl EventPayload for CameraRetryPayload
Source§impl JsonSchema for CameraRetryPayload
impl JsonSchema for CameraRetryPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CameraRetryPayload
impl PartialEq for CameraRetryPayload
Source§impl Sample for CameraRetryPayload
impl Sample for CameraRetryPayload
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
Source§impl Serialize for CameraRetryPayload
impl Serialize for CameraRetryPayload
impl StructuralPartialEq for CameraRetryPayload
Auto Trait Implementations§
impl Forget for CameraRetryPayload
impl Freeze for CameraRetryPayload
impl Move for CameraRetryPayload
impl RefUnwindSafe for CameraRetryPayload
impl Send for CameraRetryPayload
impl Sync for CameraRetryPayload
impl Unpin for CameraRetryPayload
impl UnsafeUnpin for CameraRetryPayload
impl UnwindSafe for CameraRetryPayload
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