pub struct Error { /* private fields */ }
Expand description
Top level Worker-Route Error.
Implementations§
Source§impl Error
impl Error
Sourcepub fn cause(&self) -> &ErrorCause
pub fn cause(&self) -> &ErrorCause
Returns the underlying error’s occurrence
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get the underlying error message.
Trait Implementations§
Source§impl From<ToStrError> for Error
impl From<ToStrError> for Error
Source§fn from(err: ToStrError) -> Self
fn from(err: ToStrError) -> Self
Converts to this type from the input type.
Source§impl ResponseError for Error
impl ResponseError for Error
Source§fn error_response(&self, req: HttpRequest) -> HttpResponse
fn error_response(&self, req: HttpRequest) -> HttpResponse
Creates a
Response
from error.Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns status code for an error. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Get the underlying error message.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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