Trait stellation_bridge::routines::BridgedQuery
source · 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§
Provided Methods§
sourcefn into_query_error(e: BridgeError) -> Self::Error
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.