pub struct RustlsServerStatus { /* private fields */ }Expand description
Exact bounded state needed by an external socket and lifecycle owner.
Implementations§
Source§impl RustlsServerStatus
impl RustlsServerStatus
Sourcepub const fn is_handshaking(self) -> bool
pub const fn is_handshaking(self) -> bool
Returns whether rustls is still negotiating the initial handshake.
Sourcepub const fn is_handshake_complete(self) -> bool
pub const fn is_handshake_complete(self) -> bool
Returns whether rustls has authenticated and negotiated the initial handshake.
Sourcepub const fn is_open(self) -> bool
pub const fn is_open(self) -> bool
Returns whether handshake completion and its required egress are externally visible.
Sourcepub const fn wants_read(self) -> bool
pub const fn wants_read(self) -> bool
Returns whether further encrypted peer input can progress the session.
Sourcepub const fn wants_write(self) -> bool
pub const fn wants_write(self) -> bool
Returns whether crate::RustlsServerSession::drain_tls can produce output.
Sourcepub const fn readable_plaintext_bytes(self) -> usize
pub const fn readable_plaintext_bytes(self) -> usize
Returns authenticated application bytes immediately available to read.
Sourcepub const fn tls_egress_bytes(self) -> usize
pub const fn tls_egress_bytes(self) -> usize
Returns encrypted output observed by the last successful rustls transition.
Sourcepub const fn peer_closure(self) -> RustlsPeerClosure
pub const fn peer_closure(self) -> RustlsPeerClosure
Returns the authenticated or raw peer-input termination state.
Sourcepub const fn close_notify_sent(self) -> bool
pub const fn close_notify_sent(self) -> bool
Returns whether local graceful TLS shutdown has started.
Sourcepub const fn failure(self) -> Option<TransportDiagnostic>
pub const fn failure(self) -> Option<TransportDiagnostic>
Returns the first fatal bounded diagnostic, if progression has stopped.