Skip to main content

SerializedCredentialResponse

Struct SerializedCredentialResponse 

Source
pub struct SerializedCredentialResponse<CS: CipherSuite> { /* private fields */ }
Expand description

Serialized form of CredentialResponse.

Implementations§

Source§

impl<CS: CipherSuite> SerializedCredentialResponse<CS>

Source

pub fn iter(&self) -> impl Clone + Iterator<Item = &[u8]>

Returns the serialized form of CredentialResponse in multiple byte slices.

Source

pub fn deserialize_take(input: &mut &[u8]) -> Result<Self, ProtocolError>

Returns a SerializedCredentialRequest deserialized from the given bytes.

Trait Implementations§

Source§

impl<CS: CipherSuite> Clone for SerializedCredentialResponse<CS>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<CS: CipherSuite> Debug for SerializedCredentialResponse<CS>

Source§

fn fmt(&self, __f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, CS: CipherSuite> Deserialize<'de> for SerializedCredentialResponse<CS>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<CS: CipherSuite> Eq for SerializedCredentialResponse<CS>

Source§

impl<CS: CipherSuite> Hash for SerializedCredentialResponse<CS>

Source§

fn hash<__H: Hasher>(&self, __state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<CS: CipherSuite> PartialEq for SerializedCredentialResponse<CS>

Source§

fn eq(&self, __other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<CS: CipherSuite> Serialize for SerializedCredentialResponse<CS>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<CS: CipherSuite> Serialize for SerializedCredentialResponse<CS>

Source§

type Len = <<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::ElemLen as Add<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>::Output as Add<<<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize as Add<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>::Output as Add<<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::PkLen>>::Output>>::Output

The length of the serialized types.
Source§

fn serialize(&self) -> GenericArray<u8, Self::Len>

Serialize Self to a fixed-length byte array.
Source§

impl<CS: CipherSuite> Zeroize for SerializedCredentialResponse<CS>

Source§

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.

Auto Trait Implementations§

§

impl<CS> Freeze for SerializedCredentialResponse<CS>

§

impl<CS> RefUnwindSafe for SerializedCredentialResponse<CS>

§

impl<CS> Send for SerializedCredentialResponse<CS>

§

impl<CS> Sync for SerializedCredentialResponse<CS>

§

impl<CS> Unpin for SerializedCredentialResponse<CS>

§

impl<CS> UnsafeUnpin for SerializedCredentialResponse<CS>

§

impl<CS> UnwindSafe for SerializedCredentialResponse<CS>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.