pub struct BackendProtocolIdentity { /* private fields */ }Expand description
Immutable protocol identity copied into every FTLogin/NN frame.
C++ initializes these values from AppConfig before any Platform, Broker,
or WebTCP connection is created and each connection generation retains the
same pair for its lifetime.
Ref:
FutuOpenD/Src/FTGateway/FTGTW_Inner_API.cpp:490-494f3c/FTNet/Src/ftnet/channel/impl/protocol_header.cpp:25-32
The numeric values are protocol enum/config output, not server-discovered transport data. They become invalid only if the upstream client-type or language enum width exceeds the current one-byte wire fields.
Implementations§
Trait Implementations§
Source§impl Clone for BackendProtocolIdentity
impl Clone for BackendProtocolIdentity
Source§fn clone(&self) -> BackendProtocolIdentity
fn clone(&self) -> BackendProtocolIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackendProtocolIdentity
Source§impl Debug for BackendProtocolIdentity
impl Debug for BackendProtocolIdentity
impl Eq for BackendProtocolIdentity
Source§impl PartialEq for BackendProtocolIdentity
impl PartialEq for BackendProtocolIdentity
Source§fn eq(&self, other: &BackendProtocolIdentity) -> bool
fn eq(&self, other: &BackendProtocolIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendProtocolIdentity
Auto Trait Implementations§
impl Freeze for BackendProtocolIdentity
impl RefUnwindSafe for BackendProtocolIdentity
impl Send for BackendProtocolIdentity
impl Sync for BackendProtocolIdentity
impl Unpin for BackendProtocolIdentity
impl UnsafeUnpin for BackendProtocolIdentity
impl UnwindSafe for BackendProtocolIdentity
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
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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