pub struct RpcBlockHandler;Trait Implementations§
Source§impl Clone for RpcBlockHandler
impl Clone for RpcBlockHandler
Source§fn clone(&self) -> RpcBlockHandler
fn clone(&self) -> RpcBlockHandler
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 Debug for RpcBlockHandler
impl Debug for RpcBlockHandler
Source§impl ResponseHandler for RpcBlockHandler
impl ResponseHandler for RpcBlockHandler
type Response = RpcBlockResponse
type Query = SimpleBlockRpc
Source§fn process_response(
&self,
response: Vec<RpcBlockResponse>,
) -> Result<Self::Response, QueryError<<Self::Query as RpcType>::Error>>
fn process_response( &self, response: Vec<RpcBlockResponse>, ) -> Result<Self::Response, QueryError<<Self::Query as RpcType>::Error>>
NOTE: responses should always >= 1
fn request_amount(&self) -> usize
Auto Trait Implementations§
impl Freeze for RpcBlockHandler
impl RefUnwindSafe for RpcBlockHandler
impl Send for RpcBlockHandler
impl Sync for RpcBlockHandler
impl Unpin for RpcBlockHandler
impl UnwindSafe for RpcBlockHandler
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