Struct Pin
pub struct Pin(/* private fields */);Expand description
A PIN: a short code one side shows and a person types on the other, checked by a PAKE.
Debug does not show it.
Implementations§
§impl Pin
impl Pin
pub fn generate(alphabet: &CodeAlphabet, random: &Random) -> Result<Pin, Error>
pub fn generate(alphabet: &CodeAlphabet, random: &Random) -> Result<Pin, Error>
A random PIN of alphabet.
§Errors
[Error::InvalidOptions] for a meaningless alphabet, [Error::Random].
Trait Implementations§
impl Eq for Pin
impl StructuralPartialEq for Pin
Auto Trait Implementations§
impl Freeze for Pin
impl RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl UnsafeUnpin for Pin
impl UnwindSafe for Pin
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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