use super::*;
#[derive(Data)]
pub(crate) struct H3DirectState {
#[get(skip)]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) send_stream: Option<QuicSendStream>,
#[get(pub(super))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) pending_wire: Vec<u8>,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) pending_wire_offset: usize,
#[get(pub(super))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) pending_head: Vec<u8>,
#[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)]
pub(crate) struct H3DirectTransport {
#[get(skip)]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) state: Mutex<H3DirectState>,
#[get(pub(super), type(copy))]
#[get_mut(pub(super))]
#[set(pub(super))]
pub(super) peers: StreamPeers,
}
#[derive(Default)]
pub(crate) struct H3ControlState {
pub(super) control_seen: AtomicBool,
pub(super) qpack_enc_seen: AtomicBool,
pub(super) qpack_dec_seen: AtomicBool,
}
#[derive(Clone)]
pub(crate) struct H3RequestEnv {
pub(crate) shared: Arc<ConnectionShared>,
pub(crate) peers: StreamPeers,
}