pub enum QuoteTransport {
WebSocket,
Http,
}Expand description
Transport used by the QuoteContext pull
(request/response) APIs.
Subscriptions, push events, realtime_*, member_id / quote_level /
quote_package_details and the few APIs without a REST equivalent always
use the WebSocket connection; this only selects how the other pull APIs
reach the server. Return types are the same either way, and with Http
the SDK applies the WebSocket’s US overnight rule (overnight data only when
Config::enable_overnight is set) client-side. Error codes, rate
limiting and some session-specific values can differ; see the changelog.
Variants§
WebSocket
Send pull requests over the quote WebSocket connection (default).
Http
Send pull requests over HTTP (POST /quote/*) where the API has a REST
equivalent, falling back to the WebSocket for the rest. Using only
HTTP-backed APIs never opens a WebSocket connection.
Trait Implementations§
Source§impl Clone for QuoteTransport
impl Clone for QuoteTransport
Source§fn clone(&self) -> QuoteTransport
fn clone(&self) -> QuoteTransport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for QuoteTransport
Source§impl Debug for QuoteTransport
impl Debug for QuoteTransport
Source§impl Default for QuoteTransport
impl Default for QuoteTransport
Source§fn default() -> QuoteTransport
fn default() -> QuoteTransport
impl Eq for QuoteTransport
Source§impl FromStr for QuoteTransport
impl FromStr for QuoteTransport
Source§impl PartialEq for QuoteTransport
impl PartialEq for QuoteTransport
impl StructuralPartialEq for QuoteTransport
Auto Trait Implementations§
impl Freeze for QuoteTransport
impl RefUnwindSafe for QuoteTransport
impl Send for QuoteTransport
impl Sync for QuoteTransport
impl Unpin for QuoteTransport
impl UnsafeUnpin for QuoteTransport
impl UnwindSafe for QuoteTransport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more