Enum axum::routing::MethodFilter [−][src]
pub enum MethodFilter { Any, Connect, Delete, Get, Head, Options, Patch, Post, Put, Trace, }
Expand description
A filter that matches one or more HTTP methods.
Variants
Match any method.
Match CONNECT
requests.
Match DELETE
requests.
Match GET
requests.
Match HEAD
requests.
Match OPTIONS
requests.
Match PATCH
requests.
Match POST
requests.
Match PUT
requests.
Match TRACE
requests.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MethodFilter
impl Send for MethodFilter
impl Sync for MethodFilter
impl Unpin for MethodFilter
impl UnwindSafe for MethodFilter
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
type Output = T
type Output = T
Should always be Self