pub enum CallError {
NotSent(Box<dyn Error + Send + Sync>),
OutcomeUnknown(Box<dyn Error + Send + Sync>),
Module(ErrorBody),
SubscriptionBackpressure(Box<dyn Error + Send + Sync>),
StaleRouteHandle(RouteHandle),
}Expand description
Managed call or subscription failure.
Variants§
NotSent(Box<dyn Error + Send + Sync>)
The request body was not accepted by the writer path, or route.open failed before data send.
OutcomeUnknown(Box<dyn Error + Send + Sync>)
The request body was accepted by the writer path, but no terminal response was observed.
Module(ErrorBody)
The target module handler returned an Error frame. Application-level rejections are returned as ordinary successful response bytes and do not produce this variant.
SubscriptionBackpressure(Box<dyn Error + Send + Sync>)
A subscription event receiver stopped keeping up with its bounded channel.
The reader task must never await a slow consumer while it is dispatching frames for the whole connection, so a full event channel terminates only that subscription.
StaleRouteHandle(RouteHandle)
The handle belongs to an earlier connection and no frame was emitted.
Trait Implementations§
Source§impl Error for CallError
impl Error for CallError
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<FrameBuildError> for CallError
impl From<FrameBuildError> for CallError
Source§fn from(err: FrameBuildError) -> Self
fn from(err: FrameBuildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CallError
impl !UnwindSafe for CallError
impl Freeze for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl UnsafeUnpin for CallError
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