pub enum ClientErrorCode {
BadRequest,
Unauthorized,
BadOption,
Forbidden,
NotFound,
MethodNotAllowed,
NotAcceptable,
PreconditionFailed,
RequestEntityTooLarge,
UnsupportedContentFormat,
}
Expand description
Client Error Codes according to https://www.rfc-editor.org/rfc/rfc7252#section-5.9.2
Variants§
BadRequest
4.00
4.01
BadOption
4.02
Forbidden
4.03
NotFound
4.04
MethodNotAllowed
4.05
NotAcceptable
4.06
PreconditionFailed
4.12
RequestEntityTooLarge
4.13
UnsupportedContentFormat
4.15
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 From<ClientErrorCode> for Code
impl From<ClientErrorCode> for Code
Source§fn from(code: ClientErrorCode) -> Code
fn from(code: ClientErrorCode) -> Code
Converts to this type from the input type.
Source§impl From<ClientErrorCode> for ResponseCode
impl From<ClientErrorCode> for ResponseCode
Source§fn from(code: ClientErrorCode) -> ResponseCode
fn from(code: ClientErrorCode) -> ResponseCode
Converts to this type from the input type.
Source§impl PartialEq for ClientErrorCode
impl PartialEq for ClientErrorCode
Source§impl TryFrom<Code> for ClientErrorCode
impl TryFrom<Code> for ClientErrorCode
impl Copy for ClientErrorCode
impl Eq for ClientErrorCode
impl StructuralPartialEq for ClientErrorCode
Auto Trait Implementations§
impl Freeze for ClientErrorCode
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