use super::*;
pub(crate) struct InlineHookGuard {
pub(crate) key: Arc<AtomicUsize>,
}
pub(crate) struct InlineDropGuard<F> {
pub(crate) ptr: *mut F,
}
#[derive(Clone, Default)]
pub(crate) struct RouteTrieNode {
pub(super) small_static: Vec<(String, usize)>,
pub(super) static_map: HashMapXxHash3_64<String, usize>,
pub(super) dynamic_children: Vec<(String, usize)>,
pub(super) regex_children: Vec<(String, Regex, usize)>,
pub(super) leaf: Option<CompiledHook>,
}
#[derive(Clone, Default)]
pub(crate) struct RouteTrie {
pub(super) nodes: Vec<RouteTrieNode>,
}
pub(crate) struct InlineRequestFuture<'a> {
pub(super) pipeline: &'a CompiledPipeline,
pub(super) stream: &'a mut Stream,
pub(super) ctx: &'a mut Context,
pub(super) phase: InlinePipelinePhase,
pub(super) index: usize,
pub(super) keep_alive: bool,
pub(super) check_keep_alive: bool,
pub(super) state: InlinePollState,
pub(super) storage: MaybeUninit<[usize; INLINE_FUTURE_WORDS]>,
pub(super) _pinned: PhantomPinned,
}
#[derive(Clone)]
pub(crate) struct CompiledPipeline {
pub(super) small_static_routes: SmallStaticRoutes,
pub(super) static_routes: HashMapXxHash3_64<String, CompiledHook>,
pub(super) min_static_len: usize,
pub(super) max_static_len: usize,
pub(super) dynamic_tries: CompiledRouteTries,
pub(super) has_dynamic: bool,
pub(super) regex_tries: CompiledRouteTries,
pub(super) regex_tail_routes: CompiledTailRegexRoutes,
pub(super) has_regex: bool,
pub(super) request_middleware: Vec<CompiledHook>,
pub(super) response_middleware: Vec<CompiledHook>,
}