pub struct AlphaWsStreams {}Expand description
Represents the Alpha WebSocket Streams client for interacting with the Binance Alpha WebSocket Streams.
This struct provides methods to create WebSocket Streams clients for production environments.
Implementations§
Source§impl AlphaWsStreams
impl AlphaWsStreams
Sourcepub fn from_config(
config: ConfigurationWebsocketStreams,
) -> WebsocketStreamsHandle
pub fn from_config( config: ConfigurationWebsocketStreams, ) -> WebsocketStreamsHandle
Creates a WebSocket streams client configured with the given settings.
If no WS URL is specified in the configuration, defaults to the production Alpha WebSocket Streams URL.
§Arguments
config- Configuration for the WebSocket streams client
§Returns
A new WebSocket streams client configured with the provided settings
Sourcepub fn production(
config: ConfigurationWebsocketStreams,
) -> WebsocketStreamsHandle
pub fn production( config: ConfigurationWebsocketStreams, ) -> WebsocketStreamsHandle
Auto Trait Implementations§
impl Freeze for AlphaWsStreams
impl RefUnwindSafe for AlphaWsStreams
impl Send for AlphaWsStreams
impl Sync for AlphaWsStreams
impl Unpin for AlphaWsStreams
impl UnsafeUnpin for AlphaWsStreams
impl UnwindSafe for AlphaWsStreams
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