pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
Sourcepub fn process<'c, 'i>(
&'c mut self,
incoming: &'i mut [u8],
unix_seconds: u64,
) -> UnbufferedStatus<'c, 'i, ClientConnectionData>
pub fn process<'c, 'i>( &'c mut self, incoming: &'i mut [u8], unix_seconds: u64, ) -> UnbufferedStatus<'c, 'i, ClientConnectionData>
No input/output staging copies are introduced by this wrapper.
pub fn alpn_protocol(&self) -> Option<&[u8]>
Sourcepub fn peer_certificates(&self) -> Option<&[CertificateDer<'static>]>
pub fn peer_certificates(&self) -> Option<&[CertificateDer<'static>]>
Peer chain, leaf first. Verification follows the configured verifier; consume it only after a successful handshake.
pub fn is_handshaking(&self) -> bool
pub fn handshake_kind(&self) -> Option<HandshakeKind>
pub fn set_handshake_deadline(&mut self, deadline: Option<Instant>)
pub fn next_timeout(&self) -> Option<Instant>
Sourcepub fn handle_timeout(&mut self, now: Instant) -> Option<&'static str>
pub fn handle_timeout(&mut self, now: Instant) -> Option<&'static str>
Returns a terminal timeout event exactly once.
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Forget for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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