pub enum RequestError {
Connect {
source: ConnectError,
meta: Meta,
},
Connection {
source: ConnectionError,
meta: Meta,
},
Other {
source: AnyError,
meta: Meta,
},
}Expand description
Error when opening a request. When cross-process rpc is disabled, this is an empty enum since local requests can not fail.
Variants§
Connect
Available on crate feature
rpc only.Error in quinn during connect
Connection
Available on crate feature
rpc only.Error in quinn when the connection already exists, when opening a stream pair
Other
Available on crate feature
rpc only.Generic error for non-quinn transports
Trait Implementations§
Source§impl Debug for RequestError
impl Debug for RequestError
Source§impl Display for RequestError
impl Display for RequestError
Source§impl Error for RequestError
impl Error for RequestError
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<AnyError> for RequestError
impl From<AnyError> for RequestError
Source§impl From<ConnectError> for RequestError
impl From<ConnectError> for RequestError
Source§fn from(source: ConnectError) -> Self
fn from(source: ConnectError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for RequestError
impl From<ConnectionError> for RequestError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<RequestError> for AnyError
impl From<RequestError> for AnyError
Source§fn from(value: RequestError) -> AnyError
fn from(value: RequestError) -> AnyError
Converts to this type from the input type.
Source§impl From<RequestError> for Error
impl From<RequestError> for Error
Source§fn from(source: RequestError) -> Self
fn from(source: RequestError) -> Self
Converts to this type from the input type.
Source§impl From<RequestError> for Error
impl From<RequestError> for Error
Source§fn from(e: RequestError) -> Self
fn from(e: RequestError) -> Self
Converts to this type from the input type.
Source§impl StackError for RequestError
impl StackError for RequestError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.
Source§fn as_dyn(&self) -> &dyn StackError
fn as_dyn(&self) -> &dyn StackError
Returns this error as a
dyn StackError.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.
Auto Trait Implementations§
impl !Freeze for RequestError
impl !RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl !UnwindSafe for RequestError
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