pub struct ReceiptHandler;Expand description
Handler that passes through the raw RpcReceiptResponse without transformation.
Trait Implementations§
Source§impl Clone for ReceiptHandler
impl Clone for ReceiptHandler
Source§fn clone(&self) -> ReceiptHandler
fn clone(&self) -> ReceiptHandler
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 ReceiptHandler
impl Debug for ReceiptHandler
Source§impl ResponseHandler for ReceiptHandler
impl ResponseHandler for ReceiptHandler
type Response = RpcReceiptResponse
type Query = ReceiptRpc
Source§fn process_response(
&self,
response: Vec<RpcReceiptResponse>,
) -> Result<Self::Response, QueryError<<Self::Query as RpcType>::Error>>
fn process_response( &self, response: Vec<RpcReceiptResponse>, ) -> 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 ReceiptHandler
impl RefUnwindSafe for ReceiptHandler
impl Send for ReceiptHandler
impl Sync for ReceiptHandler
impl Unpin for ReceiptHandler
impl UnsafeUnpin for ReceiptHandler
impl UnwindSafe for ReceiptHandler
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