pub trait BridgedQuery: Serialize + for<'de> Deserialize<'de> + PartialEq {
    type Input: 'static + Serialize + for<'de> Deserialize<'de> + Hash + Eq + Clone;
    type Error: 'static + Serialize + for<'de> Deserialize<'de> + Error + PartialEq + Clone;

    // Provided method
    fn into_query_error(e: BridgeError) -> Self::Error { ... }
}
Expand description

A Bridged Query.

This types defines a request that does not incur any side-effect on the server. This type is cachable and will only resolve once until refreshed.

Required Associated Types§

source

type Input: 'static + Serialize + for<'de> Deserialize<'de> + Hash + Eq + Clone

The Query Input.

source

type Error: 'static + Serialize + for<'de> Deserialize<'de> + Error + PartialEq + Clone

The Query Error Type.

Provided Methods§

source

fn into_query_error(e: BridgeError) -> Self::Error

Converts a BridgeError into the error type of current query.

Panics

The default behaviour of a network error is panic. Override this method to make the error fallible.

Implementors§