Struct ibc_chain_registry::error::RegistryError
source · pub struct RegistryError(pub RegistryErrorDetail, pub DefaultTracer);Tuple Fields§
§0: RegistryErrorDetail§1: DefaultTracerImplementations§
source§impl RegistryError
impl RegistryError
pub fn detail(&self) -> &RegistryErrorDetail
pub fn into_detail(self) -> RegistryErrorDetail
pub fn trace(&self) -> &DefaultTracer
pub fn into_trace(self) -> DefaultTracer
pub fn add_trace<E: Display>(self, message: &E) -> Selfwhere
DefaultTracer: ErrorMessageTracer,
pub fn trace_from<E, Cont>(source: E::Source, cont: Cont) -> Selfwhere
E: ErrorSource<DefaultTracer>,
DefaultTracer: ErrorMessageTracer,
Cont: FnOnce(E::Detail) -> RegistryErrorDetail,
source§impl RegistryError
impl RegistryError
pub fn grpc_endpoint_parse_error( grpc: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn join_error( task: String, source: AsErrorSource<TraceError<JoinError>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn json_parse_error( chain_name: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn no_asset_found(chain_name: String) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn no_healthy_grpc(chain: String) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn no_healthy_rpc(chain: String) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn path_error(path: PathBuf) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn request_error( url: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn rpc_connect_error( rpc: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn rpc_consensus_params_error( rpc: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn rpc_status_error( rpc: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
source§impl RegistryError
impl RegistryError
pub fn rpc_syncing_error(rpc: String) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn unhealthy_endpoints(endpoints: Vec<String>, retries: u8) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn uri_parse_error( uri: String, source: AsErrorSource<TraceError<InvalidUri>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn url_parse_error( url: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn tendermint_url_parse_error( url: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn websocket_url_parse_error( url: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn status_error(url: String, status: u16) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn unable_to_build_websocket_endpoint( rpc: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn unable_to_connect_with_grpc() -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn websocket_connect_error( url: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn websocket_conn_close_error( url: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn websocket_time_out_error( url: String, source: AsErrorSource<TraceError<Elapsed>, DefaultTracer>, ) -> RegistryError
source§impl RegistryError
impl RegistryError
pub fn websocket_driver_error( url: String, source: AsErrorSource<TraceError<Error>, DefaultTracer>, ) -> RegistryError
Trait Implementations§
source§impl Debug for RegistryErrorwhere
DefaultTracer: Debug,
impl Debug for RegistryErrorwhere
DefaultTracer: Debug,
source§impl Display for RegistryErrorwhere
DefaultTracer: Debug,
impl Display for RegistryErrorwhere
DefaultTracer: Debug,
source§impl ErrorSource<Report> for RegistryError
impl ErrorSource<Report> for RegistryError
§type Source = RegistryError
type Source = RegistryError
The type of the error source.
§type Detail = RegistryErrorDetail
type Detail = RegistryErrorDetail
The type of the error detail that can be extracted from the error source
source§fn error_details(
RegistryError: Self,
) -> (RegistryErrorDetail, Option<DefaultTracer>)
fn error_details( RegistryError: Self, ) -> (RegistryErrorDetail, Option<DefaultTracer>)
Extracts the error details out from the error source, together with
an optional error trace.
source§impl Error for RegistryError
impl Error for RegistryError
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
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 Freeze for RegistryError
impl !RefUnwindSafe for RegistryError
impl Send for RegistryError
impl Sync for RegistryError
impl Unpin for RegistryError
impl !UnwindSafe for RegistryError
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request