pub enum ClientError {
NoReachableEndpoints,
Transport(Error),
TransportFanout(String),
Rpc(Status),
InvalidEndpoint(String),
InvalidCount(u32),
Connector(Box<dyn Error + Send + Sync + 'static>),
DriverGone,
}Variants§
NoReachableEndpoints
Transport(Error)
TransportFanout(String)
A Self::Transport failure observed on one endpoint, fanned out to
the sibling waiters of a coalesced request chunk. tonic::transport::Error
is not Clone, so the originating value cannot be duplicated across
waiters; this variant carries its Display text instead. Distinct
from Self::NoReachableEndpoints: a single endpoint’s transport
failed, not the whole cluster — collapsing the two would mislead
tracing/alerting on the receiving side.
Rpc(Status)
InvalidEndpoint(String)
InvalidCount(u32)
Connector(Box<dyn Error + Send + Sync + 'static>)
DriverGone
Local driver task has terminated (typically a panic in the user-supplied
RPC closure) and can no longer serve requests. Distinct from
Self::NoReachableEndpoints: the network is fine, the in-process
driver is dead. Operators should look for a panic in their tracing
logs, not a network issue.
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Auto Trait Implementations§
impl Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
impl !UnwindSafe for ClientError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request