pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
Sourcepub fn process<'c, 'i>(
&'c mut self,
incoming: &'i mut [u8],
unix_seconds: u64,
) -> UnbufferedStatus<'c, 'i, ServerConnectionData>
pub fn process<'c, 'i>( &'c mut self, incoming: &'i mut [u8], unix_seconds: u64, ) -> UnbufferedStatus<'c, 'i, ServerConnectionData>
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 Server
impl !UnwindSafe for Server
impl Forget for Server
impl Freeze for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
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