Trait pingora_core::protocols::ssl::server::ResumableAccept
source · pub trait ResumableAccept {
// Required methods
fn start_accept<'life0, 'async_trait>(
self: Pin<&'life0 mut Self>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn resume_accept<'life0, 'async_trait>(
self: Pin<&'life0 mut Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Resumable TLS server side handshake.
Required Methods§
sourcefn start_accept<'life0, 'async_trait>(
self: Pin<&'life0 mut Self>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_accept<'life0, 'async_trait>(
self: Pin<&'life0 mut Self>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start a resumable TLS accept handshake.
Ok(true)when the handshake is finished- `Ok(false)`` when the handshake is paused midway
For now, the accept will only pause when a certificate is needed.