use kevy_uring::KernelTimespec;
pub(crate) struct UringConn {
pub(crate) recv_armed: bool,
pub(crate) write_buf: Vec<u8>,
pub(crate) write_off: usize,
pub(crate) write_inflight: bool,
pub(crate) closing: bool,
}
impl UringConn {
pub(crate) fn new() -> Self {
UringConn {
recv_armed: false,
write_buf: Vec::new(),
write_off: 0,
write_inflight: false,
closing: false,
}
}
}
#[derive(Default)]
pub(crate) struct ParkState {
pub(crate) waker_armed: bool,
pub(crate) timeout_inflight: bool,
pub(crate) wake_buf: [u8; 8],
pub(crate) ts: KernelTimespec,
}