pub struct Builder { /* private fields */ }Expand description
The builder pattern constructor for WebSocketClient.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn compat_mode(self, mode: CompatMode) -> Self
pub fn compat_mode(self, mode: CompatMode) -> Self
Use the specified compatibility mode for the Tendermint RPC protocol.
The default is the latest protocol version supported by this crate.
Sourcepub fn config(self, config: WebSocketConfig) -> Self
pub fn config(self, config: WebSocketConfig) -> Self
Use the specified low-level WebSocket configuration options.
Sourcepub async fn build(
self,
) -> Result<(WebSocketClient, WebSocketClientDriver), Error>
pub async fn build( self, ) -> Result<(WebSocketClient, WebSocketClientDriver), Error>
Try to create a client with the options specified for this builder.
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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