pub struct TcpLoginTarget<'a> {
pub is_new_login: bool,
pub redirect_ttl: u32,
pub host_ip: &'a str,
pub host_port: u32,
}Expand description
TCP login target fields written into ReqEncryptData fields 2/6/7/9.
Fields§
§is_new_login: bool§redirect_ttl: u32§host_ip: &'a str§host_port: u32Implementations§
Source§impl<'a> TcpLoginTarget<'a>
impl<'a> TcpLoginTarget<'a>
pub fn fresh( phase: TcpLoginSessionPhase, host_ip: &'a str, host_port: u32, ) -> Self
pub fn redirected( phase: TcpLoginSessionPhase, server_ttl: u32, host_ip: &'a str, host_port: u32, ) -> Self
Sourcepub fn new(
is_new_login: bool,
redirect_ttl: u32,
host_ip: &'a str,
host_port: u32,
) -> Self
pub fn new( is_new_login: bool, redirect_ttl: u32, host_ip: &'a str, host_port: u32, ) -> Self
Compatibility constructor for callers that already own an explicit
wire TTL. New runtime paths should prefer Self::fresh or
Self::redirected so a local retry counter cannot leak onto the wire.
Trait Implementations§
Source§impl<'a> Clone for TcpLoginTarget<'a>
impl<'a> Clone for TcpLoginTarget<'a>
Source§fn clone(&self) -> TcpLoginTarget<'a>
fn clone(&self) -> TcpLoginTarget<'a>
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<'a> Copy for TcpLoginTarget<'a>
Auto Trait Implementations§
impl<'a> Freeze for TcpLoginTarget<'a>
impl<'a> RefUnwindSafe for TcpLoginTarget<'a>
impl<'a> Send for TcpLoginTarget<'a>
impl<'a> Sync for TcpLoginTarget<'a>
impl<'a> Unpin for TcpLoginTarget<'a>
impl<'a> UnsafeUnpin for TcpLoginTarget<'a>
impl<'a> UnwindSafe for TcpLoginTarget<'a>
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<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