pub struct WasmClientBuilder { /* private fields */ }
Expand description
Implementations§
source§impl WasmClientBuilder
impl WasmClientBuilder
sourcepub fn new() -> WasmClientBuilder
pub fn new() -> WasmClientBuilder
Create a new WASM client builder.
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_max_logging_length(self, max: u32) -> Self
pub fn set_max_logging_length(self, max: u32) -> Self
Set maximum length for logging calls and responses.
Logs bigger than this limit will be truncated.
Trait Implementations§
source§impl Clone for WasmClientBuilder
impl Clone for WasmClientBuilder
source§fn clone(&self) -> WasmClientBuilder
fn clone(&self) -> WasmClientBuilder
Returns a copy 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 WasmClientBuilder
impl Debug for WasmClientBuilder
source§impl Default for WasmClientBuilder
impl Default for WasmClientBuilder
impl Copy for WasmClientBuilder
Auto Trait Implementations§
impl Freeze for WasmClientBuilder
impl RefUnwindSafe for WasmClientBuilder
impl Send for WasmClientBuilder
impl Sync for WasmClientBuilder
impl Unpin for WasmClientBuilder
impl UnwindSafe for WasmClientBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)