pub struct SpotWebSocketApiClientBuilder { /* private fields */ }
Implementations§
Source§impl SpotWebSocketApiClientBuilder
impl SpotWebSocketApiClientBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SpotWebSocketApiClientBuilder
. 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 future channel URI to a spot api client.
Sourcepub fn build(self) -> SpotWebsocketApiClient
pub fn build(self) -> SpotWebsocketApiClient
Build a spot websocket api client.
Auto Trait Implementations§
impl Freeze for SpotWebSocketApiClientBuilder
impl RefUnwindSafe for SpotWebSocketApiClientBuilder
impl Send for SpotWebSocketApiClientBuilder
impl Sync for SpotWebSocketApiClientBuilder
impl Unpin for SpotWebSocketApiClientBuilder
impl UnwindSafe for SpotWebSocketApiClientBuilder
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