pub struct WasmClientBuilder<L = Stack<RpcLoggerLayer, Identity>> { /* private fields */ }
Expand description
Implementations§
Source§impl WasmClientBuilder
impl WasmClientBuilder
Sourcepub fn new() -> WasmClientBuilder
pub fn new() -> WasmClientBuilder
Create a new WASM client builder.
Source§impl<L> WasmClientBuilder<L>
impl<L> WasmClientBuilder<L>
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
See documentation [ClientBuilder::request_timeout
] (default is 60 seconds).
Sourcepub fn max_concurrent_requests(self, max: usize) -> Self
pub fn max_concurrent_requests(self, max: usize) -> Self
See documentation [ClientBuilder::max_concurrent_requests
] (default is 256).
Sourcepub fn max_buffer_capacity_per_subscription(self, max: usize) -> Self
pub fn max_buffer_capacity_per_subscription(self, max: usize) -> Self
See documentation [ClientBuilder::max_buffer_capacity_per_subscription
] (default is 1024).
Sourcepub fn id_format(self, kind: IdKind) -> Self
pub fn id_format(self, kind: IdKind) -> Self
See documentation for [ClientBuilder::id_format
] (default is Number).
Sourcepub fn set_rpc_middleware<T>(
self,
middleware: RpcServiceBuilder<T>,
) -> WasmClientBuilder<T>
pub fn set_rpc_middleware<T>( self, middleware: RpcServiceBuilder<T>, ) -> WasmClientBuilder<T>
See documentation for [ClientBuilder::set_rpc_middleware
].
Trait Implementations§
Source§impl<L: Clone> Clone for WasmClientBuilder<L>
impl<L: Clone> Clone for WasmClientBuilder<L>
Source§fn clone(&self) -> WasmClientBuilder<L>
fn clone(&self) -> WasmClientBuilder<L>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<L: Debug> Debug for WasmClientBuilder<L>
impl<L: Debug> Debug for WasmClientBuilder<L>
Auto Trait Implementations§
impl<L> Freeze for WasmClientBuilder<L>where
L: Freeze,
impl<L> RefUnwindSafe for WasmClientBuilder<L>where
L: RefUnwindSafe,
impl<L> Send for WasmClientBuilder<L>where
L: Send,
impl<L> Sync for WasmClientBuilder<L>where
L: Sync,
impl<L> Unpin for WasmClientBuilder<L>where
L: Unpin,
impl<L> UnwindSafe for WasmClientBuilder<L>where
L: 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