Struct ibc_chain_registry::error::RegistryError
source · pub struct RegistryError(pub RegistryErrorDetail, pub DefaultTracer);
Tuple Fields§
§0: RegistryErrorDetail
§1: DefaultTracer
Implementations§
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 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 Error for RegistryErrorwhere
RegistryErrorDetail: Display,
DefaultTracer: Debug + Display + ErrorMessageTracer,
impl Error for RegistryErrorwhere RegistryErrorDetail: Display, DefaultTracer: Debug + Display + ErrorMessageTracer,
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()
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.
Auto Trait Implementations§
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> 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>
Wrap the input message
T
in a tonic::Request