[][src]Struct discv5::packet::AuthHeader

pub struct AuthHeader {
    pub auth_tag: AuthTag,
    pub id_nonce: Nonce,
    pub auth_scheme_name: &'static str,
    pub ephemeral_pubkey: Vec<u8>,
    pub auth_response: Vec<u8>,
}

The Authentication header.

Fields

auth_tag: AuthTag

Authentication nonce.

id_nonce: Nonce

The nonce of the associated WHOAREYOU packet.

auth_scheme_name: &'static str

The authentication scheme.

ephemeral_pubkey: Vec<u8>

The public key as a raw encoded bytes.

auth_response: Vec<u8>

Authentication response.

Implementations

impl AuthHeader[src]

pub fn new(
    auth_tag: AuthTag,
    id_nonce: Nonce,
    ephemeral_pubkey: Vec<u8>,
    resp: Vec<u8>
) -> Self
[src]

Trait Implementations

impl Clone for AuthHeader[src]

impl Debug for AuthHeader[src]

impl Decodable for AuthHeader[src]

impl Encodable for AuthHeader[src]

impl PartialEq<AuthHeader> for AuthHeader[src]

impl StructuralPartialEq for AuthHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,