use super::*;
#[derive(Data, Debug)]
pub(crate) struct H2DirectState {
#[get(skip)]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) send_response: Option<SendResponse<H2BodyBuf>>,
#[get(skip)]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) send_stream: Option<h2::SendStream<H2BodyBuf>>,
#[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,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) peers: StreamPeers,
}
#[derive(Data, Debug)]
pub(crate) struct H2DirectTransport {
#[get(pub(super))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) state: Arc<Mutex<H2DirectState>>,
}
pub(crate) struct H2StreamGuard {
pub(super) inner: Option<(Stream, Arc<Mutex<H2DirectState>>)>,
}