pub trait OnResponse {
    fn expecting_response(origin: &MultiLocation, query_id: u64) -> bool;
    fn on_response(
        origin: &MultiLocation,
        query_id: u64,
        response: Response,
        max_weight: Weight
    ) -> Weight; }
Expand description

Define what needs to be done upon receiving a query response.

Required Methods§

Returns true if we are expecting a response from origin for query query_id.

Handler for receiving a response from origin relating to query_id.

Implementations on Foreign Types§

Implementors§