#[repr(transparent)]
pub struct FastlyStatus { pub code: i32, }

Fields

code: i32

Implementations

Success value.

This indicates that a hostcall finished successfully.

Generic error value.

This means that some unexpected error occured during a hostcall.

Invalid argument.

Invalid handle.

Thrown when a request, response, or body handle is not valid.

Buffer length error.

Thrown when a buffer is too long.

Unsupported operation error.

This error is thrown when some operation cannot be performed, because it is not supported.

Alignment error.

This is thrown when a pointer does not point to a properly aligned slice of memory.

👎 Deprecated since 0.6.1:

Please use the equivalent HTTPINVALID constant instead

HTTP parse error.

This can be thrown when a method, URI, or header is not valid.

Invalid HTTP error.

This can be thrown when a method, URI, or header is not valid.

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.

HTTP incomplete message error.

This can be thrown when a stream ended unexpectedly.

A None error.

This status code is used to indicate when an optional value did not exist, as opposed to an empty value.

HTTP head too large error.

This error will be thrown when the message head is too large.

HTTP invalid status error.

This error will be thrown when the HTTP message contains an invalid status code.

Convert a FastlyStatus value to a Result<(), FastlyStatus>.

This will consume a status code, and return Ok(()) if and only if the value was FastlyStatus::OK. If the status code was some error, then it will be returned in the result’s Err variant.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.