pub struct RegistrationResponse<CS: CipherSuite> { /* private fields */ }Expand description
The answer sent by the server to the user, upon reception of the registration attempt
Implementations§
Source§impl<CS: CipherSuite> RegistrationResponse<CS>
impl<CS: CipherSuite> RegistrationResponse<CS>
Sourcepub fn serialize(&self) -> GenericArray<u8, RegistrationResponseLen<CS>>where
<<CS::OprfCs as CipherSuite>::Group as Group>::ElemLen: Add<<<CS::KeyExchange as KeyExchange>::Group as Group>::PkLen> + ArrayLength,
RegistrationResponseLen<CS>: ArrayLength,
pub fn serialize(&self) -> GenericArray<u8, RegistrationResponseLen<CS>>where
<<CS::OprfCs as CipherSuite>::Group as Group>::ElemLen: Add<<<CS::KeyExchange as KeyExchange>::Group as Group>::PkLen> + ArrayLength,
RegistrationResponseLen<CS>: ArrayLength,
Serialization into bytes
Sourcepub fn deserialize(input: &[u8]) -> Result<Self, ProtocolError>
pub fn deserialize(input: &[u8]) -> Result<Self, ProtocolError>
Deserialization from bytes
Trait Implementations§
Source§impl<CS: CipherSuite> Clone for RegistrationResponse<CS>
impl<CS: CipherSuite> Clone for RegistrationResponse<CS>
Source§impl<CS: CipherSuite> Debug for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: Debug,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: Debug,
impl<CS: CipherSuite> Debug for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: Debug,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: Debug,
Source§impl<'de, CS: CipherSuite> Deserialize<'de> for RegistrationResponse<CS>
impl<'de, CS: CipherSuite> Deserialize<'de> for RegistrationResponse<CS>
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<CS: CipherSuite> Eq for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: Eq,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: Eq,
Source§impl<CS: CipherSuite> Hash for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: Hash,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: Hash,
impl<CS: CipherSuite> Hash for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: Hash,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: Hash,
Source§impl<CS: CipherSuite> Ord for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: Ord,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: Ord,
impl<CS: CipherSuite> Ord for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: Ord,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: Ord,
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<CS: CipherSuite> PartialEq for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: PartialEq,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: PartialEq,
impl<CS: CipherSuite> PartialEq for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: PartialEq,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: PartialEq,
Source§impl<CS: CipherSuite> PartialOrd for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: PartialOrd,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: PartialOrd,
impl<CS: CipherSuite> PartialOrd for RegistrationResponse<CS>where
EvaluationElement<CS::OprfCs>: PartialOrd,
<<CS::KeyExchange as KeyExchange>::Group as Group>::Pk: PartialOrd,
Source§impl<CS: CipherSuite> Serialize for RegistrationResponse<CS>
impl<CS: CipherSuite> Serialize for RegistrationResponse<CS>
Auto Trait Implementations§
impl<CS> Freeze for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Freeze,
<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::Pk: Freeze,
impl<CS> RefUnwindSafe for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: RefUnwindSafe,
<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::Pk: RefUnwindSafe,
impl<CS> Send for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Send,
<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::Pk: Send,
impl<CS> Sync for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Sync,
<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::Pk: Sync,
impl<CS> Unpin for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Unpin,
<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::Pk: Unpin,
impl<CS> UnsafeUnpin for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: UnsafeUnpin,
<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::Pk: UnsafeUnpin,
impl<CS> UnwindSafe for RegistrationResponse<CS>where
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: UnwindSafe,
<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::Pk: UnwindSafe,
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