pub struct DefaultJsonRpcClientProvider<F = DefaultJsonRpcClientFactory>where
F: JsonRpcClientFactory,{ /* private fields */ }Implementations§
Source§impl<F> DefaultJsonRpcClientProvider<F>where
F: JsonRpcClientFactory,
impl<F> DefaultJsonRpcClientProvider<F>where
F: JsonRpcClientFactory,
pub fn with_factory(factory: F) -> Self
pub fn clear_cache(&self)
pub fn remove_cached_client( &self, target: &TransportTarget, ) -> Option<Arc<dyn JsonRpcClient<Error = TransportError>>>
Trait Implementations§
Source§impl<F> JsonRpcClientProvider for DefaultJsonRpcClientProvider<F>where
F: JsonRpcClientFactory,
impl<F> JsonRpcClientProvider for DefaultJsonRpcClientProvider<F>where
F: JsonRpcClientFactory,
type Error = TransportError
type Client = Arc<dyn JsonRpcClient<Error = TransportError>>
fn get_client<'a>( &'a self, target: &'a TransportTarget, ) -> JsonRpcClientProviderFuture<'a, Result<Self::Client, Self::Error>>
Auto Trait Implementations§
impl<F = DefaultJsonRpcClientFactory> !Freeze for DefaultJsonRpcClientProvider<F>
impl<F> RefUnwindSafe for DefaultJsonRpcClientProvider<F>where
F: RefUnwindSafe,
impl<F> Send for DefaultJsonRpcClientProvider<F>
impl<F> Sync for DefaultJsonRpcClientProvider<F>
impl<F> Unpin for DefaultJsonRpcClientProvider<F>where
F: Unpin,
impl<F> UnsafeUnpin for DefaultJsonRpcClientProvider<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for DefaultJsonRpcClientProvider<F>where
F: 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