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§
Source§impl Pin
impl Pin
Sourcepub fn parse(alphabet: &CodeAlphabet, text: &str) -> Result<Self, Error>
pub fn parse(alphabet: &CodeAlphabet, text: &str) -> Result<Self, Error>
text as a PIN of alphabet, matched exactly.
§Errors
Error::InvalidCode when it is not exactly len characters of the alphabet.
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§
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