Struct rok::router::router::METHOD_ANY[][src]

pub struct METHOD_ANY { /* fields omitted */ }

Methods from Deref<Target = Method>

pub const GET: Method[src]

pub const POST: Method[src]

pub const PUT: Method[src]

pub const DELETE: Method[src]

pub const HEAD: Method[src]

pub const OPTIONS: Method[src]

pub const CONNECT: Method[src]

pub const PATCH: Method[src]

pub const TRACE: Method[src]

pub fn is_safe(&self) -> bool[src]

Whether a method is considered "safe", meaning the request is essentially read-only.

See the spec for more words.

pub fn is_idempotent(&self) -> bool[src]

Whether a method is considered "idempotent", meaning the request has the same result if executed multiple times.

See the spec for more words.

pub fn as_str(&self) -> &str[src]

Return a &str representation of the HTTP method

Trait Implementations

impl Deref for METHOD_ANY[src]

type Target = Method

The resulting type after dereferencing.

impl LazyStatic for METHOD_ANY[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,