Enum ibc_query::error::QueryError
source · pub enum QueryError {
ContextError(ContextError),
IdentifierError(IdentifierError),
ProofNotFound(String),
MissingField(String),
}
Variants§
ContextError(ContextError)
Context error: {0}
IdentifierError(IdentifierError)
Identifier error: {0}
ProofNotFound(String)
Proof not found: {0}
MissingField(String)
Missing field: {0}
Implementations§
source§impl QueryError
impl QueryError
pub fn proof_not_found<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<ContextError> for QueryError
impl From<ContextError> for QueryError
source§fn from(e: ContextError) -> Self
fn from(e: ContextError) -> Self
Converts to this type from the input type.
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<PacketError> for QueryError
impl From<PacketError> for QueryError
source§fn from(e: PacketError) -> Self
fn from(e: PacketError) -> 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