pub enum ConsumeError {
Api(Error),
Handler(HandlerError),
}Expand description
What consuming with a handler returns when it goes wrong: the API (or the client itself) or the handler.
Variants§
Api(Error)
Handler(HandlerError)
Trait Implementations§
Source§impl Debug for ConsumeError
impl Debug for ConsumeError
Source§impl Display for ConsumeError
impl Display for ConsumeError
Source§impl Error for ConsumeError
impl Error for ConsumeError
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<Error> for ConsumeError
impl From<Error> for ConsumeError
Source§fn from(e: Error) -> ConsumeError
fn from(e: Error) -> ConsumeError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConsumeError
impl !Send for ConsumeError
impl !Sync for ConsumeError
impl !UnwindSafe for ConsumeError
impl Freeze for ConsumeError
impl Unpin for ConsumeError
impl UnsafeUnpin for ConsumeError
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