[][src]Struct fastly_shared::XqdStatus

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

Fields

code: i32

Methods

impl XqdStatus[src]

pub const OK: Self[src]

Success value.

This indicates that a hostcall finished successfully.

pub const ERROR: Self[src]

Generic error value.

This means that some unexpected error occured during a hostcall.

pub const INVAL: Self[src]

Invalid argument.

pub const BADF: Self[src]

Invalid handle.

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

pub const BUFLEN: Self[src]

Buffer length error.

Thrown when a buffer is too long.

pub const UNSUPPORTED: Self[src]

Unsupported operation error.

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

pub const BADALIGN: Self[src]

Alignment error.

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

pub const HTTPPARSE: Self[src]

HTTP parse error.

This can be thrown when a method, URI, header, or status is not valid. This can also be thrown if a message head is too large.

pub const HTTPUSER: Self[src]

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.

pub const HTTPINCOMPLETE: Self[src]

HTTP incomplete message error.

This can be thrown when a stream ended unexpectedly.

pub fn is_ok(&self) -> bool[src]

pub fn is_err(&self) -> bool[src]

Trait Implementations

impl Clone for XqdStatus[src]

impl Copy for XqdStatus[src]

impl Debug for XqdStatus[src]

impl Eq for XqdStatus[src]

impl PartialEq<XqdStatus> for XqdStatus[src]

impl StructuralEq for XqdStatus[src]

impl StructuralPartialEq for XqdStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.