pub struct SecurityCode(/* private fields */);Expand description
A security code (6 × 5 digits).
Implementations§
Source§impl SecurityCode
impl SecurityCode
Sourcepub fn from_authenticator(auth: &[u8]) -> Option<SecurityCode>
pub fn from_authenticator(auth: &[u8]) -> Option<SecurityCode>
The code of an epoch authenticator (at least 30 bytes; SHA-256 suites give 32).
Trait Implementations§
Source§impl Clone for SecurityCode
impl Clone for SecurityCode
Source§impl Debug for SecurityCode
impl Debug for SecurityCode
impl Eq for SecurityCode
Source§impl PartialEq for SecurityCode
impl PartialEq for SecurityCode
impl StructuralPartialEq for SecurityCode
Auto Trait Implementations§
impl Forget for SecurityCode
impl Freeze for SecurityCode
impl Move for SecurityCode
impl RefUnwindSafe for SecurityCode
impl Send for SecurityCode
impl Sync for SecurityCode
impl Unpin for SecurityCode
impl UnsafeUnpin for SecurityCode
impl UnwindSafe for SecurityCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more