pub struct HandlerTable {
pub step_buckets: HashMap<&'static str, Vec<StepHandlerEntry>>,
}Expand description
A handler table bucketed by step event_name.
It is mounted inside DefaultHookEngine and replaced atomically via
DefaultHookEngine::reload — ArcSwap makes runtime hot-reloading nearly
zero-cost.
Fields§
§step_buckets: HashMap<&'static str, Vec<StepHandlerEntry>>Handler list indexed by step event_name (snake_case). Declaration order
determines pipeline execution order.
Implementations§
Source§impl HandlerTable
impl HandlerTable
pub fn empty() -> Self
Sourcepub fn step_handlers(&self, event_name: &str) -> &[StepHandlerEntry]
pub fn step_handlers(&self, event_name: &str) -> &[StepHandlerEntry]
Step handlers assembled under the step event_name.
Sourcepub fn push_step(&mut self, event_name: &'static str, entry: StepHandlerEntry)
pub fn push_step(&mut self, event_name: &'static str, entry: StepHandlerEntry)
Appends a step handler under the given step event_name.
Trait Implementations§
Source§impl Default for HandlerTable
impl Default for HandlerTable
Source§fn default() -> HandlerTable
fn default() -> HandlerTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HandlerTable
impl !UnwindSafe for HandlerTable
impl Freeze for HandlerTable
impl Send for HandlerTable
impl Sync for HandlerTable
impl Unpin for HandlerTable
impl UnsafeUnpin for HandlerTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more