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§
Source§impl CatalyzerError
impl CatalyzerError
Sourcepub const RuntimeInitializationError: Self
pub const RuntimeInitializationError: Self
A shortcut for creating a RuntimeInitializationError.
Sourcepub const UnsupportedMethodError: Self
pub const UnsupportedMethodError: Self
A shortcut for creating a UnsupportedMethodError.
Sourcepub const fn new(inner: Inner) -> Self
pub const fn new(inner: Inner) -> Self
Creates a new CatalyzerError from the given inner error.
Sourcepub fn into_inner(self) -> Inner
pub fn into_inner(self) -> Inner
Returns the inner error.
Trait Implementations§
Source§impl Clone for CatalyzerError
impl Clone for CatalyzerError
Source§fn clone(&self) -> CatalyzerError
fn clone(&self) -> CatalyzerError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CatalyzerError
impl Debug for CatalyzerError
Source§impl Display for CatalyzerError
impl Display for CatalyzerError
Source§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)>
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 From<CatalyzerError> for CatalyzerError
impl From<CatalyzerError> for CatalyzerError
Source§impl From<CatalyzerIoError> for CatalyzerError
impl From<CatalyzerIoError> for CatalyzerError
Source§fn from(e: CatalyzerIoError) -> Self
fn from(e: CatalyzerIoError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CatalyzerError
impl From<Error> for CatalyzerError
Source§impl From<FromUtf8Error> for CatalyzerError
impl From<FromUtf8Error> for CatalyzerError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for CatalyzerError
impl IntoResponse for CatalyzerError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for CatalyzerError
impl !UnwindSafe for CatalyzerError
impl Freeze for CatalyzerError
impl Send for CatalyzerError
impl Sync for CatalyzerError
impl Unpin for CatalyzerError
impl UnsafeUnpin for CatalyzerError
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<T, S> Handler<IntoResponseHandler, S> for T
impl<T, S> Handler<IntoResponseHandler, S> for T
Source§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.
Source§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 moreSource§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<H, T> HandlerWithoutStateExt<T> for H
impl<H, T> HandlerWithoutStateExt<T> for H
Source§fn into_service(self) -> HandlerService<H, T, ()>
fn into_service(self) -> HandlerService<H, T, ()>
Convert the handler into a
Service and no state.Source§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 moreSource§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