Can read, but not open next file in background yet

This commit is contained in:
Dominik Werder
2021-04-01 18:29:31 +02:00
parent dd7c028a41
commit 40ae0bbe46
7 changed files with 268 additions and 29 deletions

View File

@@ -1,10 +1,36 @@
use serde_derive::{Serialize, Deserialize};
//use std::pin::Pin;
use serde::{Serialize, Deserialize};
use err::Error;
//use std::pin::Pin;
#[derive(Serialize, Deserialize)]
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Channel {
pub backend: String,
pub name: String,
}
impl Channel {
pub fn name(&self) -> &str {
&self.name
}
}
#[test]
fn serde_channel() {
let _ex = "{\"name\":\"thechannel\",\"backend\":\"thebackend\"}";
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct AggQuerySingleChannel {
pub channel: String,
pub ksprefix: String,
pub keyspace: u32,
pub channel: Channel,
pub timebin: u32,
pub split: u32,
pub tbsize: u32,
pub buffer_size: u32,
}
pub struct BodyStream {