pub struct WarpError { /* private fields */ }Expand description
States that an argument could not be read from where its role says it comes from.
Trait Implementations§
impl Eq for WarpError
Source§impl Error for WarpError
impl Error for WarpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl HttpErrorAlg for WarpError
impl HttpErrorAlg for WarpError
Source§const HTTP_STATUSES: &'static [HttpStatus]
const HTTP_STATUSES: &'static [HttpStatus]
Every status this failure can be answered with. Read more
Source§fn http_status(&self) -> HttpStatus
fn http_status(&self) -> HttpStatus
Returns the status this failure is answered with.
Source§fn http_message(&self) -> String
fn http_message(&self) -> String
Returns the message this failure is answered with.
impl StructuralPartialEq for WarpError
Auto Trait Implementations§
impl Freeze for WarpError
impl RefUnwindSafe for WarpError
impl Send for WarpError
impl Sync for WarpError
impl Unpin for WarpError
impl UnsafeUnpin for WarpError
impl UnwindSafe for WarpError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.