Enum tsukuyomi_cors::CORSErrorKind
source · pub enum CORSErrorKind {
InvalidOrigin,
DisallowedOrigin,
InvalidRequestMethod,
DisallowedRequestMethod,
InvalidRequestHeaders,
DisallowedRequestHeaders,
}
Variants
InvalidOrigin
DisallowedOrigin
InvalidRequestMethod
DisallowedRequestMethod
InvalidRequestHeaders
DisallowedRequestHeaders
Trait Implementations
sourceimpl Debug for CORSErrorKind
impl Debug for CORSErrorKind
sourceimpl Display for CORSErrorKind
impl Display for CORSErrorKind
sourceimpl Fail for CORSErrorKind
impl Fail for CORSErrorKind
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<CORSErrorKind> for CORSError
impl From<CORSErrorKind> for CORSError
sourcefn from(kind: CORSErrorKind) -> Self
fn from(kind: CORSErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for CORSErrorKind
impl Send for CORSErrorKind
impl Sync for CORSErrorKind
impl Unpin for CORSErrorKind
impl UnwindSafe for CORSErrorKind
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