#[repr(u16)]pub enum ResponsesServerCodes {
Show 26 variants
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
HTTPVersionNotSupported = 505,
VariantAlsoNegotiates = 506,
InsufficientStorage = 507,
LoopDetected = 508,
BandwidthLimitExceeded = 509,
NotExtended = 510,
NetworkAuthenticationRequired = 511,
UnknownError = 520,
WebServerIsDown = 521,
ConnectionTimedOut = 522,
OriginIsUnreachable = 523,
TimeoutOccurred = 524,
SSLHandshakeFailed = 525,
InvalidSSLCertificate = 526,
RailgunError = 527,
SiteIsOverloaded = 529,
SiteIsFrozen = 530,
OriginDNSError = 531,
NoSiteDetected = 561,
NetworkReadTimeoutError = 598,
NetworkConnectTimeoutError = 599,
}Variants§
InternalServerError = 500
NotImplemented = 501
BadGateway = 502
GatewayTimeout = 504
HTTPVersionNotSupported = 505
VariantAlsoNegotiates = 506
InsufficientStorage = 507
LoopDetected = 508
BandwidthLimitExceeded = 509
NotExtended = 510
NetworkAuthenticationRequired = 511
UnknownError = 520
WebServerIsDown = 521
ConnectionTimedOut = 522
OriginIsUnreachable = 523
TimeoutOccurred = 524
SSLHandshakeFailed = 525
InvalidSSLCertificate = 526
RailgunError = 527
SiteIsOverloaded = 529
SiteIsFrozen = 530
OriginDNSError = 531
NoSiteDetected = 561
NetworkReadTimeoutError = 598
NetworkConnectTimeoutError = 599
Trait Implementations§
Source§impl Clone for ResponsesServerCodes
impl Clone for ResponsesServerCodes
Source§fn clone(&self) -> ResponsesServerCodes
fn clone(&self) -> ResponsesServerCodes
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 ResponsesServerCodes
impl Debug for ResponsesServerCodes
Source§impl Display for ResponsesServerCodes
impl Display for ResponsesServerCodes
Source§impl EnumProperty for ResponsesServerCodes
impl EnumProperty for ResponsesServerCodes
Source§impl From<ResponsesServerCodes> for u16
impl From<ResponsesServerCodes> for u16
Source§fn from(enum_value: ResponsesServerCodes) -> Self
fn from(enum_value: ResponsesServerCodes) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponsesServerCodes
impl PartialEq for ResponsesServerCodes
Source§impl ResponseFunctions for ResponsesServerCodes
impl ResponseFunctions for ResponsesServerCodes
Source§fn generate_responses()
fn generate_responses()
Generate simple response functions
Source§fn generate_responses_with_metadata()
fn generate_responses_with_metadata()
Generate response functions with metadata
Source§impl TryFrom<u16> for ResponsesServerCodes
impl TryFrom<u16> for ResponsesServerCodes
Source§type Error = TryFromPrimitiveError<ResponsesServerCodes>
type Error = TryFromPrimitiveError<ResponsesServerCodes>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ResponsesServerCodes
impl TryFromPrimitive for ResponsesServerCodes
const NAME: &'static str = "ResponsesServerCodes"
type Primitive = u16
type Error = TryFromPrimitiveError<ResponsesServerCodes>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ResponsesServerCodes
impl StructuralPartialEq for ResponsesServerCodes
Auto Trait Implementations§
impl Freeze for ResponsesServerCodes
impl RefUnwindSafe for ResponsesServerCodes
impl Send for ResponsesServerCodes
impl Sync for ResponsesServerCodes
impl Unpin for ResponsesServerCodes
impl UnwindSafe for ResponsesServerCodes
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