pub enum QueryError {
Handler(HandlerError),
Host(HostError),
Decoding(DecodingError),
MissingProof(String),
MissingField(String),
}
Expand description
The main error type of the ibc-query crate. This type mainly serves to surface lower-level errors that occur when executing ibc-query’s codepaths.
Variants§
Handler(HandlerError)
handler error: {0}
Host(HostError)
host error: {0}
Decoding(DecodingError)
decoding error: {0}
MissingProof(String)
missing proof: {0}
MissingField(String)
missing field: {0}
Implementations§
Source§impl QueryError
impl QueryError
pub fn missing_proof<T: ToString>(description: T) -> Self
pub fn missing_field<T: ToString>(description: T) -> Self
Trait Implementations§
Source§impl Debug for QueryError
impl Debug for QueryError
Source§impl Display for QueryError
impl Display for QueryError
Source§impl From<ChannelError> for QueryError
impl From<ChannelError> for QueryError
Source§fn from(e: ChannelError) -> Self
fn from(e: ChannelError) -> Self
Converts to this type from the input type.
Source§impl From<ClientError> for QueryError
impl From<ClientError> for QueryError
Source§fn from(e: ClientError) -> Self
fn from(e: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for QueryError
impl From<ConnectionError> for QueryError
Source§fn from(e: ConnectionError) -> Self
fn from(e: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<DecodingError> for QueryError
impl From<DecodingError> for QueryError
Source§fn from(e: DecodingError) -> Self
fn from(e: DecodingError) -> Self
Converts to this type from the input type.
Source§impl From<HostError> for QueryError
impl From<HostError> for QueryError
Source§impl From<IdentifierError> for QueryError
impl From<IdentifierError> for QueryError
Source§fn from(e: IdentifierError) -> Self
fn from(e: IdentifierError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for Status
impl From<QueryError> for Status
Source§fn from(e: QueryError) -> Self
fn from(e: QueryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryError
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnwindSafe for QueryError
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> 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