pub struct NotPresent { /* private fields */ }
Expand description
An error type indicating that a necessary elements was not given from the client.
This error value will return 400 Bad Request
as the HTTP status code.
Implementations§
Source§impl NotPresent
impl NotPresent
Trait Implementations§
Source§impl Debug for NotPresent
impl Debug for NotPresent
Source§impl Display for NotPresent
impl Display for NotPresent
Source§impl HttpError for NotPresent
impl HttpError for NotPresent
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Return the HTTP status code associated with this error type.
Source§fn append_headers(&self, headers: &mut HeaderMap<HeaderValue>)
fn append_headers(&self, headers: &mut HeaderMap<HeaderValue>)
Append a set of header values to the header map.
Auto Trait Implementations§
impl Freeze for NotPresent
impl RefUnwindSafe for NotPresent
impl Send for NotPresent
impl Sync for NotPresent
impl Unpin for NotPresent
impl UnwindSafe for NotPresent
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more