#[non_exhaustive]pub enum BinanceWebSocketUrl {
Show 13 variants
Spot9443,
Spot443,
SpotTest,
SpotData,
WebSocket443,
WebSocket9443,
FuturesUsdM,
FuturesUsdMAuth,
FuturesCoinM,
FuturesUsdMTest,
FuturesCoinMTest,
EuropeanOptions,
None,
}Available on crate feature
binance only.Expand description
A enum that represents the base url of the Binance WebSocket API
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Spot9443
wss://stream.binance.com:9443
Spot443
wss://stream.binance.com:443
SpotTest
wss://testnet.binance.vision
SpotData
wss://data-stream.binance.com
WebSocket443
wss://ws-api.binance.com:443
WebSocket9443
wss://ws-api.binance.com:9443
FuturesUsdM
wss://fstream.binance.com
FuturesUsdMAuth
wss://fstream-auth.binance.com
FuturesCoinM
wss://dstream.binance.com
FuturesUsdMTest
wss://stream.binancefuture.com
FuturesCoinMTest
wss://dstream.binancefuture.com
EuropeanOptions
wss://nbstream.binance.com
None
The url will not be modified by BinanceRequestHandler
Implementations§
Trait Implementations§
Source§impl Clone for BinanceWebSocketUrl
impl Clone for BinanceWebSocketUrl
Source§fn clone(&self) -> BinanceWebSocketUrl
fn clone(&self) -> BinanceWebSocketUrl
Returns a duplicate 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 BinanceWebSocketUrl
impl Debug for BinanceWebSocketUrl
Source§impl PartialEq for BinanceWebSocketUrl
impl PartialEq for BinanceWebSocketUrl
impl Copy for BinanceWebSocketUrl
impl Eq for BinanceWebSocketUrl
impl StructuralPartialEq for BinanceWebSocketUrl
Auto Trait Implementations§
impl Freeze for BinanceWebSocketUrl
impl RefUnwindSafe for BinanceWebSocketUrl
impl Send for BinanceWebSocketUrl
impl Sync for BinanceWebSocketUrl
impl Unpin for BinanceWebSocketUrl
impl UnwindSafe for BinanceWebSocketUrl
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.