pub enum ServerErrorCode {
InternalServerError,
NotImplemented,
BadGateway,
ServiceUnavailable,
GatewayTimeout,
ProxyingNotSupported,
}
Expand description
Server Error Codes according to https://www.rfc-editor.org/rfc/rfc7252#section-5.9.3
Variants§
InternalServerError
5.00
NotImplemented
5.01
BadGateway
5.02
5.03
GatewayTimeout
5.04
ProxyingNotSupported
5.05
Trait Implementations§
Source§impl Clone for ServerErrorCode
impl Clone for ServerErrorCode
Source§fn clone(&self) -> ServerErrorCode
fn clone(&self) -> ServerErrorCode
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 ServerErrorCode
impl Debug for ServerErrorCode
Source§impl From<ServerErrorCode> for Code
impl From<ServerErrorCode> for Code
Source§fn from(code: ServerErrorCode) -> Code
fn from(code: ServerErrorCode) -> Code
Converts to this type from the input type.
Source§impl From<ServerErrorCode> for ResponseCode
impl From<ServerErrorCode> for ResponseCode
Source§fn from(code: ServerErrorCode) -> ResponseCode
fn from(code: ServerErrorCode) -> ResponseCode
Converts to this type from the input type.
Source§impl PartialEq for ServerErrorCode
impl PartialEq for ServerErrorCode
Source§impl TryFrom<Code> for ServerErrorCode
impl TryFrom<Code> for ServerErrorCode
impl Copy for ServerErrorCode
impl Eq for ServerErrorCode
impl StructuralPartialEq for ServerErrorCode
Auto Trait Implementations§
impl Freeze for ServerErrorCode
impl RefUnwindSafe for ServerErrorCode
impl Send for ServerErrorCode
impl Sync for ServerErrorCode
impl Unpin for ServerErrorCode
impl UnwindSafe for ServerErrorCode
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