#[repr(transparent)]pub struct FastlyStatus {
pub code: i32,
}
Fields§
§code: i32
Implementations§
Source§impl FastlyStatus
impl FastlyStatus
Sourcepub const ERROR: Self
pub const ERROR: Self
Generic error value.
This means that some unexpected error occurred during a hostcall.
Sourcepub const BADF: Self
pub const BADF: Self
Invalid handle.
Returned when a request, response, or body handle is not valid.
Sourcepub const UNSUPPORTED: Self
pub const UNSUPPORTED: Self
Unsupported operation error.
This error is returned when some operation cannot be performed, because it is not supported.
Sourcepub const BADALIGN: Self
pub const BADALIGN: Self
Alignment error.
This is returned when a pointer does not point to a properly aligned slice of memory.
Sourcepub const HTTPINVALID: Self
pub const HTTPINVALID: Self
Invalid HTTP error.
This can be returned when a method, URI, or header is not valid.
Sourcepub const HTTPUSER: Self
pub const HTTPUSER: Self
HTTP user error.
This is returned in cases where user code caused an HTTP error. For example, attempt to send
a 1xx response code, or a request with a non-absolute URI. This can also be caused by
an unexpected header: both content-length
and transfer-encoding
, for example.
Sourcepub const HTTPINCOMPLETE: Self
pub const HTTPINCOMPLETE: Self
HTTP incomplete message error.
This can be returned when a stream ended unexpectedly.
Sourcepub const NONE: Self
pub const NONE: Self
A None
error.
This status code is used to indicate when an optional value did not exist, as opposed to an empty value.
Sourcepub const HTTPHEADTOOLARGE: Self
pub const HTTPHEADTOOLARGE: Self
HTTP head too large error.
This error will be returned when the message head is too large.
Sourcepub const HTTPINVALIDSTATUS: Self
pub const HTTPINVALIDSTATUS: Self
HTTP invalid status error.
This error will be returned when the HTTP message contains an invalid status code.
Sourcepub const LIMITEXCEEDED: Self
pub const LIMITEXCEEDED: Self
Limit exceeded
This is returned when an attempt to allocate a resource has exceeded the maximum number of resources permitted. For example, creating too many response handles.
Sourcepub const AGAIN: Self
pub const AGAIN: Self
Resource temporarily unavailable
This is returned when an attempting to retrieve a resource that is not yet available. For example when attempting to read trailers from a Body that has not yet been consumed.
pub fn is_ok(&self) -> bool
pub fn is_err(&self) -> bool
Trait Implementations§
Source§impl Clone for FastlyStatus
impl Clone for FastlyStatus
Source§fn clone(&self) -> FastlyStatus
fn clone(&self) -> FastlyStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more