Struct fastly_shared::FastlyStatus
source · [−]#[repr(transparent)]pub struct FastlyStatus {
pub code: i32,
}
Fields
code: i32
Implementations
sourceimpl 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.
Thrown when a request, response, or body handle is not valid.
sourcepub const UNSUPPORTED: Self = _
pub const UNSUPPORTED: Self = _
Unsupported operation error.
This error is thrown when some operation cannot be performed, because it is not supported.
sourcepub const BADALIGN: Self = _
pub const BADALIGN: Self = _
Alignment error.
This is thrown when a pointer does not point to a properly aligned slice of memory.
sourcepub const HTTPPARSE: Self = _
👎Deprecated since 0.6.1: Please use the equivalent HTTPINVALID
constant instead
pub const HTTPPARSE: Self = _
HTTPINVALID
constant insteadHTTP parse error.
This can be thrown when a method, URI, or header is not valid.
sourcepub const HTTPINVALID: Self = _
pub const HTTPINVALID: Self = _
Invalid HTTP error.
This can be thrown when a method, URI, or header is not valid.
sourcepub const HTTPUSER: Self = _
pub const HTTPUSER: Self = _
HTTP user error.
This is thrown 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 thrown 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 thrown when the message head is too large.
sourcepub const HTTPINVALIDSTATUS: Self = _
pub const HTTPINVALIDSTATUS: Self = _
HTTP invalid status error.
This error will be thrown when the HTTP message contains an invalid status code.
pub fn is_ok(&self) -> bool
pub fn is_err(&self) -> bool
Trait Implementations
sourceimpl Clone for FastlyStatus
impl Clone for FastlyStatus
sourcefn clone(&self) -> FastlyStatus
fn clone(&self) -> FastlyStatus
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more