Struct catalyzer::CatalyzerError
pub struct CatalyzerError(/* private fields */);
Expand description
An error type for Catalyzer operations.
This type is a wrapper around various error types that can occur during Catalyzer operations.
For ease of use, you can always use the ?
operator to propagate errors.
Implementations§
§impl CatalyzerError
impl CatalyzerError
pub const RuntimeInitializationError: CatalyzerError = _
pub const RuntimeInitializationError: CatalyzerError = _
A shortcut for creating a RuntimeInitializationError
.
pub const UnsupportedMethodError: CatalyzerError = _
pub const UnsupportedMethodError: CatalyzerError = _
A shortcut for creating a UnsupportedMethodError
.
pub const NoAddress: CatalyzerError = _
pub const NoAddress: CatalyzerError = _
A shortcut for creating a NoAddress
error.
pub const fn new(inner: CatalyzerError) -> CatalyzerError
pub const fn new(inner: CatalyzerError) -> CatalyzerError
Creates a new CatalyzerError
from the given inner error.
pub fn into_inner(self) -> CatalyzerError
pub fn into_inner(self) -> CatalyzerError
Returns the inner error.
Trait Implementations§
§impl Clone for CatalyzerError
impl Clone for CatalyzerError
§fn clone(&self) -> CatalyzerError
fn clone(&self) -> CatalyzerError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for CatalyzerError
impl Debug for CatalyzerError
§impl Display for CatalyzerError
impl Display for CatalyzerError
§impl Error for CatalyzerError
impl Error for CatalyzerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<Error> for CatalyzerError
impl From<Error> for CatalyzerError
§fn from(e: Error) -> CatalyzerError
fn from(e: Error) -> CatalyzerError
Converts to this type from the input type.
§impl From<FromUtf8Error> for CatalyzerError
impl From<FromUtf8Error> for CatalyzerError
§fn from(e: FromUtf8Error) -> CatalyzerError
fn from(e: FromUtf8Error) -> CatalyzerError
Converts to this type from the input type.
§impl From<CatalyzerError> for CatalyzerError
impl From<CatalyzerError> for CatalyzerError
§fn from(e: CatalyzerError) -> CatalyzerError
fn from(e: CatalyzerError) -> CatalyzerError
Converts to this type from the input type.
§impl From<CatalyzerIoError> for CatalyzerError
impl From<CatalyzerIoError> for CatalyzerError
§fn from(e: CatalyzerIoError) -> CatalyzerError
fn from(e: CatalyzerIoError) -> CatalyzerError
Converts to this type from the input type.
§impl IntoResponse for CatalyzerError
impl IntoResponse for CatalyzerError
§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Create a response.
Auto Trait Implementations§
impl Freeze for CatalyzerError
impl !RefUnwindSafe for CatalyzerError
impl Send for CatalyzerError
impl Sync for CatalyzerError
impl Unpin for CatalyzerError
impl !UnwindSafe for CatalyzerError
Blanket Implementations§
§impl<T, S> Handler<IntoResponseHandler, S> for T
impl<T, S> Handler<IntoResponseHandler, S> for T
§fn call(
self,
_req: Request<Body>,
_state: S
) -> <T as Handler<IntoResponseHandler, S>>::Future
fn call( self, _req: Request<Body>, _state: S ) -> <T as Handler<IntoResponseHandler, S>>::Future
Call the handler with the given request.
§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer
to the handler. Read more§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service
by providing the statesource§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
§impl<H, T> HandlerWithoutStateExt<T> for H
impl<H, T> HandlerWithoutStateExt<T> for H
§fn into_service(self) -> HandlerService<H, T, ()>
fn into_service(self) -> HandlerService<H, T, ()>
Convert the handler into a
Service
and no state.§fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
Convert the handler into a
MakeService
and no state. Read more§fn into_make_service_with_connect_info<C>(
self
) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>
fn into_make_service_with_connect_info<C>( self ) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>
Convert the handler into a
MakeService
which stores information
about the incoming connection and has no state. Read more