pub enum HandlerMethod {
Directory,
Specific(Method),
Any,
}
Expand description
Variants§
Directory
Represents a directory handler. Will be run whether the user requests a target that is part of this directory. Also, it is the last handler type in terms of priority
Specific(Method)
A handler that will be run only when a specific Method
is made at the corresponding target
Any
Like the Specific
variant, but will run for any type of request
Auto Trait Implementations§
impl Freeze for HandlerMethod
impl RefUnwindSafe for HandlerMethod
impl Send for HandlerMethod
impl Sync for HandlerMethod
impl Unpin for HandlerMethod
impl UnwindSafe for HandlerMethod
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