#[non_exhaustive]pub enum SourceError {
Request(String),
UnavailableHeight,
RequestTimeout {
millis: u128,
},
InvalidRequestTimeout,
InvalidSessionLimit,
InvalidReorgDepth,
InvalidDeliverySizeLimit {
requested: usize,
maximum: usize,
},
InvalidResponseLimit {
resource: &'static str,
},
}Expand description
External source request failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Request(String)
HyperSync or its transport rejected the request.
This internal diagnostic may retain provider-supplied sensitive detail. Service adapters must map it to a static public error before crossing a remote trust boundary.
The provider did not return a usable archive height for an established chain.
RequestTimeout
A source operation exceeded the configured end-to-end request deadline.
InvalidRequestTimeout
A zero request deadline would make every source operation fail immediately.
InvalidSessionLimit
A zero resident-session limit would reject every source session.
InvalidReorgDepth
A zero reorg history cannot certify or resolve even a one-block fork.
InvalidDeliverySizeLimit
A provider delivery budget must fit inside the protocol-safe envelope.
Fields
InvalidResponseLimit
A hard local provider-response limit must be nonzero.
Implementations§
Source§impl SourceError
impl SourceError
Sourcepub fn request(message: impl Into<String>) -> Self
pub fn request(message: impl Into<String>) -> Self
Retain an external provider or transport failure for trusted local diagnostics.
This constructor does not sanitize its argument. ManagedEventProvider
deliberately converts the error to a static unavailable response before
the event service exposes it over gRPC.
Report that the provider has no usable nonzero archive height yet.
Sourcepub fn request_timeout(timeout: Duration) -> Self
pub fn request_timeout(timeout: Duration) -> Self
Report expiration of one configured end-to-end source deadline.
Trait Implementations§
Source§impl Clone for SourceError
impl Clone for SourceError
Source§impl Debug for SourceError
impl Debug for SourceError
Source§impl Display for SourceError
impl Display for SourceError
impl Eq for SourceError
Source§impl Error for SourceError
impl Error for SourceError
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<SourceError> for SourceEngineError
impl From<SourceError> for SourceEngineError
Source§fn from(source: SourceError) -> Self
fn from(source: SourceError) -> Self
Source§impl PartialEq for SourceError
impl PartialEq for SourceError
impl StructuralPartialEq for SourceError
Auto Trait Implementations§
impl Freeze for SourceError
impl RefUnwindSafe for SourceError
impl Send for SourceError
impl Sync for SourceError
impl Unpin for SourceError
impl UnsafeUnpin for SourceError
impl UnwindSafe for SourceError
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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