pub struct Handler {
pub func: Box<dyn HandlerFunc>,
pub middleware: Option<VecDeque<Box<dyn Middleware>>>,
}Fields§
§func: Box<dyn HandlerFunc>§middleware: Option<VecDeque<Box<dyn Middleware>>>Implementations§
Trait Implementations§
Source§impl<Func, Param> From<FuncParamHandler<Func, Param>> for Handler
impl<Func, Param> From<FuncParamHandler<Func, Param>> for Handler
Source§fn from(value: FuncParamHandler<Func, Param>) -> Self
fn from(value: FuncParamHandler<Func, Param>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Handler
impl !UnwindSafe for Handler
impl Freeze for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl UnsafeUnpin for Handler
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