pub enum TransportError {
Unavailable(String),
Unauthorized(String),
Protocol(String),
FrontierTruncated {
device_id: String,
dropped_below: u64,
},
}Expand description
A transport-level failure — the service was unreachable or misbehaved.
Distinct from an in-band verdict (a deduped push, a Held lease): those are
success returns, not errors.
Variants§
The service could not be reached / timed out / returned a transport error (HTTP 5xx, connection reset, …).
The caller is not authorized for scope (bad/expired Parslee token).
Protocol(String)
A reply could not be parsed into the expected shape (protocol drift).
FrontierTruncated
A pull requested a frontier below the relay’s GC floor for device_id
(retained ops start at dropped_below). NOT a failure — the service’s
signal that the caller must cold-bootstrap from the latest
checkpoint. Maps to RelayError::FrontierTruncated, which
crate::session::SyncSession::pump already handles by rebasing.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§fn clone(&self) -> TransportError
fn clone(&self) -> TransportError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
impl Eq for TransportError
Source§impl Error for TransportError
impl Error for TransportError
1.30.0 · 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<TransportError> for RelayError
impl From<TransportError> for RelayError
Source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Source§impl PartialEq for TransportError
impl PartialEq for TransportError
Source§fn eq(&self, other: &TransportError) -> bool
fn eq(&self, other: &TransportError) -> bool
self and other values to be equal, and is used by ==.