Struct InvalidStatusCode

pub struct InvalidStatusCode { /* private fields */ }

A possible error value when converting a StatusCode from a u16 or &str.

This error indicates that the supplied input was not a valid number, was less than 100, or was greater than 999.

Trait Implementations

impl Debug for InvalidStatusCode

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for InvalidStatusCode

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Error for InvalidStatusCode

Auto Trait Implementations

impl Freeze for InvalidStatusCode

impl RefUnwindSafe for InvalidStatusCode

impl Send for InvalidStatusCode

impl Sync for InvalidStatusCode

impl Unpin for InvalidStatusCode

impl UnsafeUnpin for InvalidStatusCode

impl UnwindSafe for InvalidStatusCode

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for InvalidStatusCode

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for InvalidStatusCode where T: Display + ?Sized,

fn to_string(&self) -> String

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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