pub struct FutureWebSocketApiClientBuilder { /* private fields */ }
Implementations§
Source§impl FutureWebSocketApiClientBuilder
impl FutureWebSocketApiClientBuilder
Sourcepub fn new(role: FutureRole) -> Self
pub fn new(role: FutureRole) -> Self
Create a new FutureWebSocketApiClientBuilder
. Channel URI is set to the mainnet.
Sourcepub fn uri<S: AsRef<str>>(self, uri: S) -> Self
pub fn uri<S: AsRef<str>>(self, uri: S) -> Self
Set channel URI to the URI specified.
Note URI should match with api client kind. Do not set a spot channel URI to a future api client.
Sourcepub fn build(self) -> FutureWebsocketApiClient
pub fn build(self) -> FutureWebsocketApiClient
Build a future websocket api client.
Auto Trait Implementations§
impl Freeze for FutureWebSocketApiClientBuilder
impl RefUnwindSafe for FutureWebSocketApiClientBuilder
impl Send for FutureWebSocketApiClientBuilder
impl Sync for FutureWebSocketApiClientBuilder
impl Unpin for FutureWebSocketApiClientBuilder
impl UnwindSafe for FutureWebSocketApiClientBuilder
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