Struct loco_protocol::secure::session::SecureServerSession [−][src]
pub struct SecureServerSession { /* fields omitted */ }Expand description
Server side connection
Implementations
pub fn handshake<S: Read>(
&mut self,
stream: &mut S
) -> Result<CryptoStore, SecureHandshakeError>
pub fn handshake<S: Read>(
&mut self,
stream: &mut S
) -> Result<CryptoStore, SecureHandshakeError>
Do server handshake and returns CryptoStore on success
pub async fn handshake_async<'a, S: AsyncRead + Unpin>(
&'a mut self,
stream: &'a mut S
) -> Result<CryptoStore, SecureHandshakeError>
pub async fn handshake_async<'a, S: AsyncRead + Unpin>(
&'a mut self,
stream: &'a mut S
) -> Result<CryptoStore, SecureHandshakeError>
Do server handshake async and returns CryptoStore on success
