pub struct MultiQueryHandler<Handlers> {
handlers: Handlers,
}Fields§
§handlers: HandlersImplementations§
Source§impl<Handlers> MultiQueryHandler<Handlers>
impl<Handlers> MultiQueryHandler<Handlers>
Trait Implementations§
Source§impl<Handlers: Clone> Clone for MultiQueryHandler<Handlers>
impl<Handlers: Clone> Clone for MultiQueryHandler<Handlers>
Source§fn clone(&self) -> MultiQueryHandler<Handlers>
fn clone(&self) -> MultiQueryHandler<Handlers>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Handlers: Debug> Debug for MultiQueryHandler<Handlers>
impl<Handlers: Debug> Debug for MultiQueryHandler<Handlers>
Source§impl<Handlers: Default> Default for MultiQueryHandler<Handlers>
impl<Handlers: Default> Default for MultiQueryHandler<Handlers>
Source§impl<Query, H1, H2, R1, R2> ResponseHandler for MultiQueryHandler<(H1, H2)>where
Query: RpcType,
H1: ResponseHandler<Response = R1, Query = Query>,
H2: ResponseHandler<Response = R2, Query = Query>,
impl<Query, H1, H2, R1, R2> ResponseHandler for MultiQueryHandler<(H1, H2)>where
Query: RpcType,
H1: ResponseHandler<Response = R1, Query = Query>,
H2: ResponseHandler<Response = R2, Query = Query>,
type Response = (R1, R2)
type Query = <H1 as ResponseHandler>::Query
Source§fn process_response(
&self,
responses: Vec<<H1::Query as RpcType>::Response>,
) -> Result<Self::Response, QueryError<<H1::Query as RpcType>::Error>>
fn process_response( &self, responses: Vec<<H1::Query as RpcType>::Response>, ) -> Result<Self::Response, QueryError<<H1::Query as RpcType>::Error>>
NOTE: responses should always >= 1
fn request_amount(&self) -> usize
Source§impl<Query, H1, H2, H3, R1, R2, R3> ResponseHandler for MultiQueryHandler<(H1, H2, H3)>where
Query: RpcType,
H1: ResponseHandler<Response = R1, Query = Query>,
H2: ResponseHandler<Response = R2, Query = Query>,
H3: ResponseHandler<Response = R3, Query = Query>,
impl<Query, H1, H2, H3, R1, R2, R3> ResponseHandler for MultiQueryHandler<(H1, H2, H3)>where
Query: RpcType,
H1: ResponseHandler<Response = R1, Query = Query>,
H2: ResponseHandler<Response = R2, Query = Query>,
H3: ResponseHandler<Response = R3, Query = Query>,
Auto Trait Implementations§
impl<Handlers> Freeze for MultiQueryHandler<Handlers>where
Handlers: Freeze,
impl<Handlers> RefUnwindSafe for MultiQueryHandler<Handlers>where
Handlers: RefUnwindSafe,
impl<Handlers> Send for MultiQueryHandler<Handlers>where
Handlers: Send,
impl<Handlers> Sync for MultiQueryHandler<Handlers>where
Handlers: Sync,
impl<Handlers> Unpin for MultiQueryHandler<Handlers>where
Handlers: Unpin,
impl<Handlers> UnwindSafe for MultiQueryHandler<Handlers>where
Handlers: UnwindSafe,
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