Struct revault_net::noise::KKHandshakeActTwo
source · [−]pub struct KKHandshakeActTwo { /* private fields */ }
Expand description
Final round of the KK handshake
Implementations
sourceimpl KKHandshakeActTwo
impl KKHandshakeActTwo
sourcepub fn initiator(
handshake: KKHandshakeActOne,
message: &KKMessageActTwo
) -> Result<KKHandshakeActTwo, NoiseError>
pub fn initiator(
handshake: KKHandshakeActOne,
message: &KKMessageActTwo
) -> Result<KKHandshakeActTwo, NoiseError>
Start the second act of the handshake as a responder (read e, ee, se)
sourcepub fn responder(
handshake: KKHandshakeActOne
) -> Result<(KKHandshakeActTwo, KKMessageActTwo), NoiseError>
pub fn responder(
handshake: KKHandshakeActOne
) -> Result<(KKHandshakeActTwo, KKMessageActTwo), NoiseError>
Start the second act of the handshake as a responder (write e, ee, se)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for KKHandshakeActTwo
impl Send for KKHandshakeActTwo
impl Sync for KKHandshakeActTwo
impl Unpin for KKHandshakeActTwo
impl !UnwindSafe for KKHandshakeActTwo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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