pub struct HandshakeFSM { /* private fields */ }Expand description
Per-peer handshake state machine.
One HandshakeFSM exists per remote peer in crate::MeshNodeFSM.
Dispatches to a Host or Joiner strategy depending on which side
initiates the SDP exchange.
Implementations§
Source§impl HandshakeFSM
impl HandshakeFSM
pub fn new(strategy: HandshakeStrategy) -> Self
pub fn joiner() -> Self
Sourcepub fn state(&self) -> &HandshakeState
pub fn state(&self) -> &HandshakeState
Get current handshake stat
pub fn strategy(&self) -> &HandshakeStrategy
Sourcepub fn process(
&mut self,
input: HandshakeInput,
) -> Result<Option<HandshakeOutput>>
pub fn process( &mut self, input: HandshakeInput, ) -> Result<Option<HandshakeOutput>>
Process handshake input and generate handshake output
Auto Trait Implementations§
impl Freeze for HandshakeFSM
impl RefUnwindSafe for HandshakeFSM
impl Send for HandshakeFSM
impl Sync for HandshakeFSM
impl Unpin for HandshakeFSM
impl UnsafeUnpin for HandshakeFSM
impl UnwindSafe for HandshakeFSM
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