Coverage Report

Created: 2022-07-04 16:17

src/requests/replay_buffer.rs
Line
Count
Source
1
//! Requests related to the replay buffer.
2
3
use serde::Serialize;
4
5
25
#[derive(Serialize)]
Unexecuted instantiation: <obws::requests::replay_buffer::Request as serde::ser::Serialize>::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec<u8>>>
<obws::requests::replay_buffer::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
25
#[derive(Serialize)]
Unexecuted instantiation: <obws::requests::replay_buffer::Request as serde::ser::Serialize>::serialize::<_>
Unexecuted instantiation: <obws::requests::replay_buffer::Request as serde::ser::Serialize>::serialize::<_>
6
#[serde(tag = "requestType", content = "requestData")]
7
pub(crate) enum Request {
8
    #[serde(rename = "GetReplayBufferStatus")]
9
    Status,
10
    #[serde(rename = "ToggleReplayBuffer")]
11
    Toggle,
12
    #[serde(rename = "StartReplayBuffer")]
13
    Start,
14
    #[serde(rename = "StopReplayBuffer")]
15
    Stop,
16
    #[serde(rename = "SaveReplayBuffer")]
17
    Save,
18
    #[serde(rename = "GetLastReplayBufferReplay")]
19
    LastReplay,
20
}
21
22
impl<'a> From<Request> for super::RequestType<'a> {
23
25
    fn from(value: Request) -> Self {
24
25
        super::RequestType::ReplayBuffer(value)
25
25
    }
<obws::requests::RequestType as core::convert::From<obws::requests::replay_buffer::Request>>::from
Line
Count
Source
23
25
    fn from(value: Request) -> Self {
24
25
        super::RequestType::ReplayBuffer(value)
25
25
    }
Unexecuted instantiation: <obws::requests::RequestType as core::convert::From<obws::requests::replay_buffer::Request>>::from
26
}