pub struct Verify<S, VT> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S, VT> RpcServiceT for Verify<S, VT>where
S: RpcServiceT<MethodResponse = MethodResponse> + Send + Clone + 'static,
VT: VerifyTimestamp + Clone + Send + 'static,
impl<S, VT> RpcServiceT for Verify<S, VT>where
S: RpcServiceT<MethodResponse = MethodResponse> + Send + Clone + 'static,
VT: VerifyTimestamp + Clone + Send + 'static,
Source§type MethodResponse = MethodResponse
type MethodResponse = MethodResponse
Response type for
RpcServiceT::call.Source§type NotificationResponse = MethodResponse
type NotificationResponse = MethodResponse
Response type for
RpcServiceT::notification.Source§type BatchResponse = MethodResponse
type BatchResponse = MethodResponse
Response type for
RpcServiceT::batch.Source§fn call<'a>(
&self,
request: Request<'a>,
) -> impl Future<Output = Self::MethodResponse> + Send + 'a
fn call<'a>( &self, request: Request<'a>, ) -> impl Future<Output = Self::MethodResponse> + Send + 'a
Processes a single JSON-RPC call, which may be a subscription or regular call.
Source§fn batch<'a>(
&self,
_requests: Batch<'a>,
) -> impl Future<Output = Self::BatchResponse> + Send + 'a
fn batch<'a>( &self, _requests: Batch<'a>, ) -> impl Future<Output = Self::BatchResponse> + Send + 'a
Processes multiple JSON-RPC calls at once, similar to
RpcServiceT::call. Read moreSource§fn notification<'a>(
&self,
_n: Notification<'a>,
) -> impl Future<Output = Self::NotificationResponse> + Send + 'a
fn notification<'a>( &self, _n: Notification<'a>, ) -> impl Future<Output = Self::NotificationResponse> + Send + 'a
Similar to
RpcServiceT::call but processes a JSON-RPC notification.Auto Trait Implementations§
impl<S, VT> Freeze for Verify<S, VT>
impl<S, VT> RefUnwindSafe for Verify<S, VT>where
S: RefUnwindSafe,
VT: RefUnwindSafe,
impl<S, VT> Send for Verify<S, VT>
impl<S, VT> Sync for Verify<S, VT>
impl<S, VT> Unpin for Verify<S, VT>
impl<S, VT> UnsafeUnpin for Verify<S, VT>where
S: UnsafeUnpin,
VT: UnsafeUnpin,
impl<S, VT> UnwindSafe for Verify<S, VT>where
S: UnwindSafe,
VT: 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