pub struct HandshakeParams {
pub identity: HandshakeIdentity,
pub host_nonce: String,
pub host_proof: String,
}Expand description
Host-to-child handshake params.
Fields§
§identity: HandshakeIdentityExact identity to admit.
host_nonce: StringCanonical base64url encoding of 32 random bytes.
host_proof: StringCanonical base64url HMAC output.
Implementations§
Source§impl HandshakeParams
impl HandshakeParams
Sourcepub fn validate(&self) -> Result<(), ProtocolError>
pub fn validate(&self) -> Result<(), ProtocolError>
Validates identity, nonce, and proof encoding.
Trait Implementations§
Source§impl Clone for HandshakeParams
impl Clone for HandshakeParams
Source§fn clone(&self) -> HandshakeParams
fn clone(&self) -> HandshakeParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandshakeParams
impl Debug for HandshakeParams
Source§impl<'de> Deserialize<'de> for HandshakeParams
impl<'de> Deserialize<'de> for HandshakeParams
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 HandshakeParams
Source§impl PartialEq for HandshakeParams
impl PartialEq for HandshakeParams
Source§impl Serialize for HandshakeParams
impl Serialize for HandshakeParams
impl StructuralPartialEq for HandshakeParams
Auto Trait Implementations§
impl Freeze for HandshakeParams
impl RefUnwindSafe for HandshakeParams
impl Send for HandshakeParams
impl Sync for HandshakeParams
impl Unpin for HandshakeParams
impl UnsafeUnpin for HandshakeParams
impl UnwindSafe for HandshakeParams
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