src/responses/streaming.rs
Line | Count | Source (jump to first uncovered line) |
1 | | //! Responses related to streaming. |
2 | | |
3 | | use serde::Deserialize; |
4 | | use time::Duration; |
5 | | |
6 | | /// Response value for [`crate::client::Streaming::status`]. |
7 | 19 | #[derive(Debug0 , D10 eserializ1 e)] Unexecuted instantiation: <obws::responses::streaming::StreamStatus as core::fmt::Debug>::fmt Unexecuted instantiation: <obws::responses::streaming::StreamStatus as core::fmt::Debug>::fmt Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer> <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error> Line | Count | Source | 7 | 8 | #[derive(Debug, Deserialize)] |
<<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<serde_json::value::Value> Line | Count | Source | 7 | 1 | #[derive(Debug, Deserialize)] |
Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>::{closure#1} Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>::{closure#0} Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<serde_json::value::Value> <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer> Line | Count | Source | 7 | 9 | #[derive(Debug, Dese1 rializ1 e)] |
<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::<serde_json::value::Value> Line | Count | Source | 7 | 1 | #[derive(Debug, Deserialize)] |
<<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<serde_json::value::Value> Line | Count | Source | 7 | 1 | #[derive(Debug, Deserialize)] |
Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<serde_json::value::Value> <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer> Line | Count | Source | 7 | 8 | #[derive(Debug, Deserialize)] |
Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#0} Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#1} Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting Unexecuted instantiation: <obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#1} Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> Unexecuted instantiation: <<obws::responses::streaming::StreamStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#0} |
8 | | pub struct StreamStatus { |
9 | | /// Whether the output is active. |
10 | | #[serde(rename = "outputActive")] |
11 | | pub active: bool, |
12 | | /// Whether the output is currently reconnecting. |
13 | | #[serde(rename = "outputReconnecting")] |
14 | | pub reconnecting: bool, |
15 | | /// Current time code for the output. |
16 | | #[serde(rename = "outputTimecode", with = "crate::serde::duration_timecode")] |
17 | | pub timecode: Duration, |
18 | | /// Current duration for the output. |
19 | | #[serde(rename = "outputDuration", with = "crate::serde::duration_millis")] |
20 | | pub duration: Duration, |
21 | | /// Congestion of the output. |
22 | | #[serde(rename = "outputCongestion")] |
23 | | pub congestion: f32, |
24 | | /// Number of bytes sent by the output. |
25 | | #[serde(rename = "outputBytes")] |
26 | | pub bytes: u64, |
27 | | /// Number of frames skipped by the output's process. |
28 | | #[serde(rename = "outputSkippedFrames")] |
29 | | pub skipped_frames: u32, |
30 | | /// Total number of frames delivered by the output's process. |
31 | | #[serde(rename = "outputTotalFrames")] |
32 | | pub total_frames: u32, |
33 | | } |
34 | | |
35 | 0 | #[derive(Debug, Deserialize)] Unexecuted instantiation: <obws::responses::streaming::OutputActive as core::fmt::Debug>::fmt Unexecuted instantiation: <obws::responses::streaming::OutputActive as core::fmt::Debug>::fmt Unexecuted instantiation: <obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::<_> Unexecuted instantiation: <<obws::responses::streaming::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_> |
36 | | pub(crate) struct OutputActive { |
37 | | /// New state of the stream output. |
38 | | #[serde(rename = "outputActive")] |
39 | | pub active: bool, |
40 | | } |