pub struct CallResultHandler<Response: Send + Sync>(PhantomData<Response>);Tuple Fields§
§0: PhantomData<Response>Implementations§
Trait Implementations§
Source§impl<Response: Clone + Send + Sync> Clone for CallResultHandler<Response>
impl<Response: Clone + Send + Sync> Clone for CallResultHandler<Response>
Source§fn clone(&self) -> CallResultHandler<Response>
fn clone(&self) -> CallResultHandler<Response>
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<Response: Default + Send + Sync> Default for CallResultHandler<Response>
impl<Response: Default + Send + Sync> Default for CallResultHandler<Response>
Source§fn default() -> CallResultHandler<Response>
fn default() -> CallResultHandler<Response>
Returns the “default value” for a type. Read more
Source§impl<Response> ResponseHandler for CallResultHandler<Response>
impl<Response> ResponseHandler for CallResultHandler<Response>
type Response = Data<Response>
type Query = SimpleQueryRpc
Source§fn process_response(
&self,
response: Vec<RpcQueryResponse>,
) -> Result<Self::Response, QueryError<<Self::Query as RpcType>::Error>>
fn process_response( &self, response: Vec<RpcQueryResponse>, ) -> Result<Self::Response, QueryError<<Self::Query as RpcType>::Error>>
NOTE: responses should always >= 1
fn request_amount(&self) -> usize
Auto Trait Implementations§
impl<Response> Freeze for CallResultHandler<Response>
impl<Response> RefUnwindSafe for CallResultHandler<Response>where
Response: RefUnwindSafe,
impl<Response> Send for CallResultHandler<Response>
impl<Response> Sync for CallResultHandler<Response>
impl<Response> Unpin for CallResultHandler<Response>where
Response: Unpin,
impl<Response> UnwindSafe for CallResultHandler<Response>where
Response: 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