pub enum HandshakeState<const LEN_SIZE: usize> {
InitiatorStarting(InitiatorStartingState),
ResponderAwaitingActOne(ResponderAwaitingActOneState),
InitiatorAwaitingActTwo(InitiatorAwaitingActTwoState),
ResponderAwaitingActThree(ResponderAwaitingActThreeState),
Complete(NoiseTranscoder<LEN_SIZE>),
}Variants§
InitiatorStarting(InitiatorStartingState)
ResponderAwaitingActOne(ResponderAwaitingActOneState)
InitiatorAwaitingActTwo(InitiatorAwaitingActTwoState)
ResponderAwaitingActThree(ResponderAwaitingActThreeState)
Complete(NoiseTranscoder<LEN_SIZE>)
Implementations§
Source§impl<const LEN_SIZE: usize> HandshakeState<LEN_SIZE>
impl<const LEN_SIZE: usize> HandshakeState<LEN_SIZE>
pub fn new_initiator( initiator_static_private_key: &SecretKey, responder_static_public_key: &PublicKey, initiator_ephemeral_private_key: &SecretKey, ) -> Self
pub fn new_responder( responder_static_private_key: &SecretKey, responder_ephemeral_private_key: &SecretKey, ) -> Self
pub fn next( self, input: &[u8], ) -> Result<(Option<Act>, HandshakeState<LEN_SIZE>), HandshakeError>
pub fn data_len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<const LEN_SIZE: usize> Freeze for HandshakeState<LEN_SIZE>
impl<const LEN_SIZE: usize> RefUnwindSafe for HandshakeState<LEN_SIZE>
impl<const LEN_SIZE: usize> Send for HandshakeState<LEN_SIZE>
impl<const LEN_SIZE: usize> Sync for HandshakeState<LEN_SIZE>
impl<const LEN_SIZE: usize> Unpin for HandshakeState<LEN_SIZE>
impl<const LEN_SIZE: usize> UnsafeUnpin for HandshakeState<LEN_SIZE>
impl<const LEN_SIZE: usize> UnwindSafe for HandshakeState<LEN_SIZE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more