Skip to main content

Codes

Struct Codes 

Source
pub struct Codes {
    pub content_type: &'static str,
    pub credential: &'static str,
    pub limit: &'static str,
    pub malformed: &'static str,
    pub refused: &'static str,
    pub unauthorized: &'static str,
    pub timeout: &'static str,
    pub server_error: &'static str,
    pub busy: &'static str,
}
Expand description

Error codes of one router, each prefixed with its family name.

Fields§

§content_type: &'static str

415: the body is not uncompressed JSON.

§credential: &'static str

401: a required bearer credential is missing or malformed.

§limit: &'static str

413: the body exceeds its limit.

§malformed: &'static str

400: the body does not parse as a request.

§refused: &'static str

400: the operation refused a well-formed request.

§unauthorized: &'static str

403: the credential may not perform the operation.

§timeout: &'static str

408: the body or the operation did not finish in time.

§server_error: &'static str

500: storage failed or the reply exceeded its limit.

§busy: &'static str

503: every permit is taken; retry after Retry-After.

Auto Trait Implementations§

§

impl Freeze for Codes

§

impl RefUnwindSafe for Codes

§

impl Send for Codes

§

impl Sync for Codes

§

impl Unpin for Codes

§

impl UnsafeUnpin for Codes

§

impl UnwindSafe for Codes

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.