[][src]Struct rocket_cors::headers::AccessControlRequestMethod

pub struct AccessControlRequestMethod(pub Method);

The Access-Control-Request-Method request header

You can use this as a rocket Request Guard to ensure that the header is passed in correctly.

Trait Implementations

impl Debug for AccessControlRequestMethod[src]

impl FromStr for AccessControlRequestMethod[src]

type Err = ()

The associated error which can be returned from parsing.

impl<'a, 'r> FromRequest<'a, 'r> for AccessControlRequestMethod[src]

type Error = Error

The associated error to be returned if derivation fails.

Auto Trait Implementations

impl Send for AccessControlRequestMethod

impl Sync for AccessControlRequestMethod

impl Unpin for AccessControlRequestMethod

impl UnwindSafe for AccessControlRequestMethod

impl RefUnwindSafe for AccessControlRequestMethod

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,