#[repr(u16)]pub enum ClientErrorCode {
Show 13 variants
BadRequest = 0,
Forbidden = 1,
NotFound = 2,
MethodNotAllowed = 3,
NotAcceptable = 4,
Conflict = 5,
Gone = 6,
RequestEntityTooLarge = 7,
RequestUriTooLong = 8,
UnsupportedMediaType = 9,
ImATeapot = 10,
PreconditionFailed = 11,
UnprocessableEntity = 12,
}
Variants§
BadRequest = 0
Forbidden = 1
NotFound = 2
MethodNotAllowed = 3
NotAcceptable = 4
Conflict = 5
Gone = 6
RequestEntityTooLarge = 7
RequestUriTooLong = 8
UnsupportedMediaType = 9
ImATeapot = 10
PreconditionFailed = 11
UnprocessableEntity = 12
Trait Implementations§
source§impl Clone for ClientErrorCode
impl Clone for ClientErrorCode
source§fn clone(&self) -> ClientErrorCode
fn clone(&self) -> ClientErrorCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClientErrorCode
impl Debug for ClientErrorCode
source§impl<'a> From<ClientErrorCode> for Reader<'a>
impl<'a> From<ClientErrorCode> for Reader<'a>
source§fn from(e: ClientErrorCode) -> Self
fn from(e: ClientErrorCode) -> Self
Converts to this type from the input type.
source§impl From<ClientErrorCode> for u16
impl From<ClientErrorCode> for u16
source§fn from(x: ClientErrorCode) -> u16
fn from(x: ClientErrorCode) -> u16
Converts to this type from the input type.
source§impl Introspect for ClientErrorCode
impl Introspect for ClientErrorCode
source§fn introspect() -> Type
fn introspect() -> Type
Retrieves a description of the type.
source§impl PartialEq for ClientErrorCode
impl PartialEq for ClientErrorCode
source§fn eq(&self, other: &ClientErrorCode) -> bool
fn eq(&self, other: &ClientErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for ClientErrorCode
impl TryFrom<u16> for ClientErrorCode
impl Copy for ClientErrorCode
impl Eq for ClientErrorCode
impl StructuralEq for ClientErrorCode
impl StructuralPartialEq for ClientErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ClientErrorCode
impl Send for ClientErrorCode
impl Sync for ClientErrorCode
impl Unpin for ClientErrorCode
impl UnwindSafe for ClientErrorCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more