pub struct ClientPairInit {
pub pairing_index: u32,
pub commit_b: Option<String>,
}Expand description
client/pair-init: starts a pairing attempt.
The Pairing PSK flow leaves commit_B absent. The Dynamic Pairing Code Flow requires it: the
commitment locks the client’s nonce before any value from the server is known. The Static
Pairing Code Flow has no nonce of its own and leaves it absent as well.
Fields§
§pairing_index: u32Number of pairing server/activate messages received since the last Noise handshake.
commit_b: Option<String>SHA-256(label || nonce_B) of the dynamic flow’s client nonce, when the method needs one.
The wire spells the field commit_B, so the rename is explicit.
Trait Implementations§
Source§impl Clone for ClientPairInit
impl Clone for ClientPairInit
Source§impl Debug for ClientPairInit
impl Debug for ClientPairInit
Source§impl Default for ClientPairInit
impl Default for ClientPairInit
Source§impl<'de> Deserialize<'de> for ClientPairInit
impl<'de> Deserialize<'de> for ClientPairInit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClientPairInit
Source§impl PartialEq for ClientPairInit
impl PartialEq for ClientPairInit
Source§impl Serialize for ClientPairInit
impl Serialize for ClientPairInit
impl StructuralPartialEq for ClientPairInit
Auto Trait Implementations§
impl Forget for ClientPairInit
impl Freeze for ClientPairInit
impl Move for ClientPairInit
impl RefUnwindSafe for ClientPairInit
impl Send for ClientPairInit
impl Sync for ClientPairInit
impl Unpin for ClientPairInit
impl UnsafeUnpin for ClientPairInit
impl UnwindSafe for ClientPairInit
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