pub enum FoldQueryClientError {
Transport(RpcError),
Codec(String),
Server(FoldQueryError),
}Expand description
Client-side errors the typed surface produces. Distinct from
RpcError (transport) and FoldQueryError (handler-level)
so the caller can match on the failure shape they care about.
Variants§
Transport(RpcError)
Transport-level failure — no route, timeout, server returned a non-Ok status before invoking the handler.
Codec(String)
Request serialization or response deserialization failed.
Server(FoldQueryError)
Aggregator handler rejected the request (e.g. unknown
fold kind). Forwarded from
super::FoldQueryResponse::Error.
Trait Implementations§
Source§impl Debug for FoldQueryClientError
impl Debug for FoldQueryClientError
Source§impl Display for FoldQueryClientError
impl Display for FoldQueryClientError
Source§impl Error for FoldQueryClientError
impl Error for FoldQueryClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<RpcError> for FoldQueryClientError
impl From<RpcError> for FoldQueryClientError
Source§impl From<TypedCallError> for FoldQueryClientError
impl From<TypedCallError> for FoldQueryClientError
Source§fn from(e: TypedCallError) -> Self
fn from(e: TypedCallError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FoldQueryClientError
impl !RefUnwindSafe for FoldQueryClientError
impl Send for FoldQueryClientError
impl Sync for FoldQueryClientError
impl Unpin for FoldQueryClientError
impl UnsafeUnpin for FoldQueryClientError
impl !UnwindSafe for FoldQueryClientError
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