Struct tsukuyomi::handler::AllowedMethods
source · pub struct AllowedMethods(_);
Expand description
A set of request methods that a route accepts.
Implementations
sourceimpl AllowedMethods
impl AllowedMethods
pub fn get() -> &'static AllowedMethods
pub fn contains(&self, method: &Method) -> bool
pub fn iter<'a>(&'a self) -> impl Iterator<Item = &'a Method> + 'a
pub fn to_header_value(&self) -> HeaderValue
Trait Implementations
sourceimpl Clone for AllowedMethods
impl Clone for AllowedMethods
sourcefn clone(&self) -> AllowedMethods
fn clone(&self) -> AllowedMethods
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AllowedMethods
impl Debug for AllowedMethods
sourceimpl Extend<Method> for AllowedMethods
impl Extend<Method> for AllowedMethods
sourcefn extend<I: IntoIterator<Item = Method>>(&mut self, iterable: I)
fn extend<I: IntoIterator<Item = Method>>(&mut self, iterable: I)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl From<Method> for AllowedMethods
impl From<Method> for AllowedMethods
sourceimpl FromIterator<Method> for AllowedMethods
impl FromIterator<Method> for AllowedMethods
sourcefn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = Method>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = Method>,
Creates a value from an iterator. Read more
sourceimpl<'a> IntoIterator for &'a AllowedMethods
impl<'a> IntoIterator for &'a AllowedMethods
sourceimpl IntoIterator for AllowedMethods
impl IntoIterator for AllowedMethods
sourceimpl<'a> TryFrom<&'a str> for AllowedMethods
impl<'a> TryFrom<&'a str> for AllowedMethods
sourceimpl TryFrom<AllowedMethods> for AllowedMethods
impl TryFrom<AllowedMethods> for AllowedMethods
sourceimpl TryFrom<Method> for AllowedMethods
impl TryFrom<Method> for AllowedMethods
Auto Trait Implementations
impl RefUnwindSafe for AllowedMethods
impl Send for AllowedMethods
impl Sync for AllowedMethods
impl Unpin for AllowedMethods
impl UnwindSafe for AllowedMethods
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more