Struct loco_protocol::secure::session::SecureServerSession
source · [−]pub struct SecureServerSession { /* private fields */ }Expand description
Server side credential session
Implementations
sourceimpl SecureServerSession
impl SecureServerSession
pub const fn new(key: RsaPrivateKey) -> Self
sourcepub fn handshake<S: Read>(
&self,
stream: &mut S
) -> Result<CryptoStore, SecureHandshakeError>
pub fn handshake<S: Read>(
&self,
stream: &mut S
) -> Result<CryptoStore, SecureHandshakeError>
Do server handshake and returns CryptoStore on success
sourcepub async fn handshake_async<'a, S: AsyncRead + Unpin>(
&'a self,
stream: &'a mut S
) -> Result<CryptoStore, SecureHandshakeError>
pub async fn handshake_async<'a, S: AsyncRead + Unpin>(
&'a self,
stream: &'a mut S
) -> Result<CryptoStore, SecureHandshakeError>
Do server handshake async and returns CryptoStore on success
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SecureServerSession
impl Send for SecureServerSession
impl Sync for SecureServerSession
impl Unpin for SecureServerSession
impl UnwindSafe for SecureServerSession
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more