pub struct ConfirmationNumber(pub u32);Expand description
Six digits naming a join request’s keys, which the requester’s device and
the admin’s both compute (§13.2). It names only the keys and the invite:
the invite secret adds nothing a stranger who saw the code lacks, and the
device name is the requester’s free choice. Displays as 041 778.
Tuple Fields§
§0: u32Implementations§
Source§impl ConfirmationNumber
impl ConfirmationNumber
Sourcepub fn of(invite: InviteId, keys: &MemberPublicKeys) -> Self
pub fn of(invite: InviteId, keys: &MemberPublicKeys) -> Self
SHA-256 of the context of the label, the invite id and the keys’
MemberKeys encoding; its first 8 bytes, big-endian, modulo 1,000,000 (D11).
Trait Implementations§
Source§impl Clone for ConfirmationNumber
impl Clone for ConfirmationNumber
Source§fn clone(&self) -> ConfirmationNumber
fn clone(&self) -> ConfirmationNumber
Returns a duplicate of the value. Read more
1.0.0 · 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 ConfirmationNumber
impl Debug for ConfirmationNumber
Source§impl Display for ConfirmationNumber
impl Display for ConfirmationNumber
Source§impl Hash for ConfirmationNumber
impl Hash for ConfirmationNumber
Source§impl PartialEq for ConfirmationNumber
impl PartialEq for ConfirmationNumber
impl Copy for ConfirmationNumber
impl Eq for ConfirmationNumber
impl StructuralPartialEq for ConfirmationNumber
Auto Trait Implementations§
impl Freeze for ConfirmationNumber
impl RefUnwindSafe for ConfirmationNumber
impl Send for ConfirmationNumber
impl Sync for ConfirmationNumber
impl Unpin for ConfirmationNumber
impl UnsafeUnpin for ConfirmationNumber
impl UnwindSafe for ConfirmationNumber
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more