#[non_exhaustive]pub enum ServerOutboundError {
Timeout,
PeerError {
code: i64,
message: String,
},
TransportClosed,
Unsupported,
Serialisation(Error),
}Expand description
Failure modes for a ServerOutbound::outbound_request call.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Timeout
No response arrived before the supplied timeout elapsed.
PeerError
The peer answered with a JSON-RPC error envelope.
Fields
TransportClosed
The underlying transport closed before a response was received.
Unsupported
The active transport does not support server-initiated outbound requests (e.g. plain HTTP without a reverse channel).
Serialisation(Error)
The outbound request frame could not be serialised. Indicates an internal invariant violation rather than a transport failure.
Trait Implementations§
Source§impl Debug for ServerOutboundError
impl Debug for ServerOutboundError
Source§impl Display for ServerOutboundError
impl Display for ServerOutboundError
Source§impl Error for ServerOutboundError
impl Error for ServerOutboundError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ServerOutboundError
impl !UnwindSafe for ServerOutboundError
impl Freeze for ServerOutboundError
impl Send for ServerOutboundError
impl Sync for ServerOutboundError
impl Unpin for ServerOutboundError
impl UnsafeUnpin for ServerOutboundError
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