pub struct RustlsClientStatus { /* private fields */ }Expand description
Exact bounded state needed by an external client transport and lifecycle owner.
Implementations§
Source§impl RustlsClientStatus
impl RustlsClientStatus
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_open(self) -> bool
pub const fn is_open(self) -> bool
Returns whether handshake completion and 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::RustlsClientSession::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.
Trait Implementations§
Source§impl Clone for RustlsClientStatus
impl Clone for RustlsClientStatus
impl Copy for RustlsClientStatus
Source§impl Debug for RustlsClientStatus
impl Debug for RustlsClientStatus
impl Eq for RustlsClientStatus
Source§impl PartialEq for RustlsClientStatus
impl PartialEq for RustlsClientStatus
impl StructuralPartialEq for RustlsClientStatus
Auto Trait Implementations§
impl Freeze for RustlsClientStatus
impl RefUnwindSafe for RustlsClientStatus
impl Send for RustlsClientStatus
impl Sync for RustlsClientStatus
impl Unpin for RustlsClientStatus
impl UnsafeUnpin for RustlsClientStatus
impl UnwindSafe for RustlsClientStatus
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