pub enum TransportError {
NoRoute(RaftNodeId),
Io(Error),
Timeout(Duration),
Tls(String),
Envelope(EnvelopeError),
FrameTooLarge {
actual: usize,
limit: usize,
},
PeerAuthentication(String),
ProtocolViolation(String),
Remote(String),
}Expand description
The one error type of the cluster transport.
Variants§
NoRoute(RaftNodeId)
The target node is not in the peer directory.
Io(Error)
Socket or stream I/O failed (connect, read, write, peer EOF).
Timeout(Duration)
An RPC round trip, connect, or handshake exceeded its bound.
Tls(String)
TLS configuration or handshake failed.
Envelope(EnvelopeError)
The frame failed envelope verification (bad version, checksum, truncation, trailing bytes).
FrameTooLarge
The frame’s declared payload exceeds the configured bound; rejected before any payload bytes are read or allocated.
PeerAuthentication(String)
The peer’s certificate does not authenticate it as an admitted node.
ProtocolViolation(String)
A payload failed serde encoding/decoding, or the response frame type did not match the request.
Remote(String)
The peer answered with an error frame (no attached group, raft core failure, unknown message type).
Trait Implementations§
Source§impl Debug for TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
Source§impl Error for TransportError
impl Error for TransportError
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<EnvelopeError> for TransportError
impl From<EnvelopeError> for TransportError
Source§fn from(source: EnvelopeError) -> Self
fn from(source: EnvelopeError) -> Self
Source§impl From<Error> for TransportError
impl From<Error> for TransportError
Source§impl From<TransportError> for RuntimeError
impl From<TransportError> for RuntimeError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for TransportError
impl !UnwindSafe for TransportError
impl Freeze for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnsafeUnpin for TransportError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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