use super::*;
#[derive(Data, Debug)]
pub(crate) struct H2DirectState {
#[get(skip)]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) send_response: Option<H2SendResponse>,
#[get(skip)]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) send_stream: Option<H2SendStream>,
#[get(pub(super))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) pending_head: Vec<u8>,
#[get(pub(super))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) pending_body: Vec<u8>,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) pending_body_offset: usize,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) head_sent: bool,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) suppress_body: bool,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) is_head: bool,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) announced_len: Option<usize>,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) body_len: usize,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) finished: bool,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) failed: bool,
}
#[derive(Data, Debug)]
pub(crate) struct H2DirectTransport {
#[get(skip)]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) state: Mutex<H2DirectState>,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) peers: StreamPeers,
}
#[derive(Clone)]
pub(crate) struct H2RequestEnv {
pub(crate) shared: Arc<ConnectionShared>,
pub(crate) peers: StreamPeers,
}