Struct fastly_shared::FastlyStatus
source · #[repr(transparent)]pub struct FastlyStatus {
pub code: i32,
}Fields§
§code: i32Implementations§
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 moresource§impl Debug for FastlyStatus
impl Debug for FastlyStatus
source§impl PartialEq for FastlyStatus
impl PartialEq for FastlyStatus
impl Copy for FastlyStatus
impl Eq for FastlyStatus
impl StructuralPartialEq for FastlyStatus
Auto Trait Implementations§
impl Freeze for FastlyStatus
impl RefUnwindSafe for FastlyStatus
impl Send for FastlyStatus
impl Sync for FastlyStatus
impl Unpin for FastlyStatus
impl UnwindSafe for FastlyStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)