Struct loco_protocol::secure::session::SecureClientSession
source · [−]pub struct SecureClientSession { /* private fields */ }Expand description
Client side credential session
Implementations
sourceimpl SecureClientSession
impl SecureClientSession
pub const fn new(key: RsaPublicKey) -> Self
sourceimpl SecureClientSession
impl SecureClientSession
sourcepub fn handshake<S: Write>(
&self,
secure_stream: &mut SecureStream<S>
) -> Result<(), SecureHandshakeError>
pub fn handshake<S: Write>(
&self,
secure_stream: &mut SecureStream<S>
) -> Result<(), SecureHandshakeError>
Do client handshake
sourcepub async fn handshake_async<'a, S: AsyncWrite + Unpin>(
&self,
secure_stream: &'a mut SecureStream<S>
) -> Result<(), SecureHandshakeError>
pub async fn handshake_async<'a, S: AsyncWrite + Unpin>(
&self,
secure_stream: &'a mut SecureStream<S>
) -> Result<(), SecureHandshakeError>
Do client handshake async
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SecureClientSession
impl Send for SecureClientSession
impl Sync for SecureClientSession
impl Unpin for SecureClientSession
impl UnwindSafe for SecureClientSession
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