pub struct ServerConnInfo {
pub conn_id: RemoteConnId,
pub generation: u64,
pub health: ServerConnHealth,
pub need_codec: bool,
pub is_datagram: bool,
pub protocol_version: u16,
pub last_rx_at: Instant,
pub stream_ack_budget: Duration,
pub suspect_check: Option<Instant>,
pub retire_token: CancellationToken,
pub direct: Option<AuthContext>,
}Fields§
§conn_id: RemoteConnId§generation: u64§health: ServerConnHealth§need_codec: bool§is_datagram: bool§protocol_version: u16§last_rx_at: Instant§stream_ack_budget: DurationStream acknowledgement budget learned from completed requests and timeouts.
suspect_check: Option<Instant>The suspicion the one confirmation scheduled for this connection will settle, when one is: the latest, if activity answered an earlier one.
retire_token: CancellationTokenCancelled to tear this connection’s socket down; see
ManagerTask::Register::retire_token.
Held here rather than in the task manager’s sender map so that retiring a
connection reaches the socket even when its work queue is wedged. This is
also why the struct is Clone and no longer Copy.
direct: Option<AuthContext>Trait Implementations§
Source§impl Clone for ServerConnInfo
impl Clone for ServerConnInfo
Auto Trait Implementations§
impl Forget for ServerConnInfo
impl Freeze for ServerConnInfo
impl Move for ServerConnInfo
impl RefUnwindSafe for ServerConnInfo
impl Send for ServerConnInfo
impl Sync for ServerConnInfo
impl Unpin for ServerConnInfo
impl UnsafeUnpin for ServerConnInfo
impl UnwindSafe for ServerConnInfo
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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