Struct opaque_ke::RegistrationResponse
source · [−]pub struct RegistrationResponse<CS: CipherSuite>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,{ /* private fields */ }
Expand description
The answer sent by the server to the user, upon reception of the registration attempt
Implementations
sourceimpl<CS: CipherSuite> RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<CS: CipherSuite> RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
sourcepub fn serialize(&self) -> GenericArray<u8, RegistrationResponseLen<CS>>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::ElemLen: Add<<CS::KeGroup as KeGroup>::PkLen>,
RegistrationResponseLen<CS>: ArrayLength<u8>,
pub fn serialize(&self) -> GenericArray<u8, RegistrationResponseLen<CS>>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::ElemLen: Add<<CS::KeGroup as KeGroup>::PkLen>,
RegistrationResponseLen<CS>: ArrayLength<u8>,
Serialization into bytes
sourcepub fn deserialize(input: &[u8]) -> Result<Self, ProtocolError>
pub fn deserialize(input: &[u8]) -> Result<Self, ProtocolError>
Deserialization from bytes
Trait Implementations
sourceimpl<CS: CipherSuite> Clone for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<CS: CipherSuite> Clone for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
sourceimpl<CS: CipherSuite> Debug for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: Debug,
<CS::KeGroup as KeGroup>::Pk: Debug,
impl<CS: CipherSuite> Debug for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: Debug,
<CS::KeGroup as KeGroup>::Pk: Debug,
sourceimpl<'de, CS: CipherSuite> Deserialize<'de> for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<'de, CS: CipherSuite> Deserialize<'de> for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
sourcefn 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
sourceimpl<CS: CipherSuite> Hash for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: Hash,
<CS::KeGroup as KeGroup>::Pk: Hash,
impl<CS: CipherSuite> Hash for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: Hash,
<CS::KeGroup as KeGroup>::Pk: Hash,
sourceimpl<CS: CipherSuite> Ord for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: Ord,
<CS::KeGroup as KeGroup>::Pk: Ord,
impl<CS: CipherSuite> Ord for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: Ord,
<CS::KeGroup as KeGroup>::Pk: Ord,
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<CS: CipherSuite> PartialEq<RegistrationResponse<CS>> for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: PartialEq,
<CS::KeGroup as KeGroup>::Pk: PartialEq,
impl<CS: CipherSuite> PartialEq<RegistrationResponse<CS>> for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: PartialEq,
<CS::KeGroup as KeGroup>::Pk: PartialEq,
sourceimpl<CS: CipherSuite> PartialOrd<RegistrationResponse<CS>> for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: PartialOrd,
<CS::KeGroup as KeGroup>::Pk: PartialOrd,
impl<CS: CipherSuite> PartialOrd<RegistrationResponse<CS>> for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: PartialOrd,
<CS::KeGroup as KeGroup>::Pk: PartialOrd,
sourcefn partial_cmp(&self, __other: &Self) -> Option<Ordering>
fn partial_cmp(&self, __other: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<CS: CipherSuite> Serialize for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<CS: CipherSuite> Serialize for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<CS: CipherSuite> Eq for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as OutputSizeUser>::OutputSize: IsLess<U256> + IsLessOrEqual<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as BlockSizeUser>::BlockSize>,
<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash: Hash,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core: ProxyHash,
<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero,
EvaluationElement<CS::OprfCs>: Eq,
<CS::KeGroup as KeGroup>::Pk: Eq,
Auto Trait Implementations
impl<CS> RefUnwindSafe for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: RefUnwindSafe,
<<CS as CipherSuite>::KeGroup as KeGroup>::Pk: RefUnwindSafe,
impl<CS> Send for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Send,
<<CS as CipherSuite>::KeGroup as KeGroup>::Pk: Send,
impl<CS> Sync for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Sync,
<<CS as CipherSuite>::KeGroup as KeGroup>::Pk: Sync,
impl<CS> Unpin for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Unpin,
<<CS as CipherSuite>::KeGroup as KeGroup>::Pk: Unpin,
impl<CS> UnwindSafe for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: UnwindSafe,
<<CS as CipherSuite>::KeGroup as KeGroup>::Pk: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more