Struct ClientConfig
pub struct ClientConfig {
pub url: Url,
pub rpc_timeout: Duration,
pub retry_interval: Duration,
pub reconnect_interval: Duration,
pub subscription_buffer_size: usize,
}Fields§
§url: Url§rpc_timeout: Duration§retry_interval: Duration§reconnect_interval: Duration§subscription_buffer_size: usizeImplementations§
§impl ClientConfig
impl ClientConfig
pub fn builder() -> ClientConfigBuilder<((), (), (), (), ())>
pub fn builder() -> ClientConfigBuilder<((), (), (), (), ())>
Create a builder for building ClientConfig.
On the builder, call .url(...), .rpc_timeout(...)(optional), .retry_interval(...)(optional), .reconnect_interval(...)(optional), .subscription_buffer_size(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ClientConfig.
§impl ClientConfig
impl ClientConfig
pub fn into_client(self) -> ClientHandle
pub fn into_client(self) -> ClientHandle
Creates a new JSON-RPC client with this configuration. Returns a ClientHandle that can be used to make requests and subscriptions.
Trait Implementations§
§impl Clone for ClientConfig
impl Clone for ClientConfig
§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 moreAuto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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