Coverage Report

Created: 2022-07-04 16:17

src/requests/virtual_cam.rs
Line
Count
Source
1
//! Requests related to the virtual camera.
2
3
use serde::Serialize;
4
5
23
#[derive(Serialize)]
<obws::requests::virtual_cam::Request as serde::ser::Serialize>::serialize::<serde::__private::ser::FlatMapSerializer<serde_json::ser::Compound<&mut alloc::vec::Vec<u8>, serde_json::ser::CompactFormatter>>>
Line
Count
Source
5
23
#[derive(Serialize)]
Unexecuted instantiation: <obws::requests::virtual_cam::Request as serde::ser::Serialize>::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec<u8>>>
Unexecuted instantiation: <obws::requests::virtual_cam::Request as serde::ser::Serialize>::serialize::<_>
Unexecuted instantiation: <obws::requests::virtual_cam::Request as serde::ser::Serialize>::serialize::<_>
6
#[serde(tag = "requestType", content = "requestData")]
7
pub(crate) enum Request {
8
    #[serde(rename = "GetVirtualCamStatus")]
9
    Status,
10
    #[serde(rename = "ToggleVirtualCam")]
11
    Toggle,
12
    #[serde(rename = "StartVirtualCam")]
13
    Start,
14
    #[serde(rename = "StopVirtualCam")]
15
    Stop,
16
}
17
18
impl<'a> From<Request> for super::RequestType<'a> {
19
23
    fn from(value: Request) -> Self {
20
23
        super::RequestType::VirtualCam(value)
21
23
    }
<obws::requests::RequestType as core::convert::From<obws::requests::virtual_cam::Request>>::from
Line
Count
Source
19
23
    fn from(value: Request) -> Self {
20
23
        super::RequestType::VirtualCam(value)
21
23
    }
Unexecuted instantiation: <obws::requests::RequestType as core::convert::From<obws::requests::virtual_cam::Request>>::from
22
}