pub enum HookHandlerSpec {
Handler(ServerHookHandler),
Factory(ServerHookHandlerFactory),
}Expand description
Represents different handler types for hooks.
Variants§
Handler(ServerHookHandler)
Arc handler (used for request/response middleware and route)
Factory(ServerHookHandlerFactory)
Factory function that creates a handler when called
Trait Implementations§
Source§impl Clone for HookHandlerSpec
impl Clone for HookHandlerSpec
Source§fn clone(&self) -> HookHandlerSpec
fn clone(&self) -> HookHandlerSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for HookHandlerSpec
impl PartialEq for HookHandlerSpec
impl Eq for HookHandlerSpec
Auto Trait Implementations§
impl Freeze for HookHandlerSpec
impl !RefUnwindSafe for HookHandlerSpec
impl Send for HookHandlerSpec
impl Sync for HookHandlerSpec
impl Unpin for HookHandlerSpec
impl !UnwindSafe for HookHandlerSpec
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