pub enum QrCodeMode {
Login = 3,
Reciprocate = 4,
}Available on crate feature
e2e-encryption only.Expand description
The mode of the QR code login.
The QR code login mechanism supports both, the new device, as well as the existing device to display the QR code.
The different modes have an explicit one-byte identifier which gets added to the QR code data.
Variants§
Login = 3
Enum variant for the case where the new device is displaying the QR code.
Reciprocate = 4
Enum variant for the case where the existing device is displaying the QR code.
Trait Implementations§
Source§impl Clone for QrCodeMode
impl Clone for QrCodeMode
Source§fn clone(&self) -> QrCodeMode
fn clone(&self) -> QrCodeMode
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 QrCodeMode
impl Debug for QrCodeMode
Source§impl From<&QrCodeModeData> for QrCodeMode
impl From<&QrCodeModeData> for QrCodeMode
Source§fn from(value: &QrCodeModeData) -> QrCodeMode
fn from(value: &QrCodeModeData) -> QrCodeMode
Converts to this type from the input type.
Source§impl PartialEq for QrCodeMode
impl PartialEq for QrCodeMode
Source§impl TryFrom<u8> for QrCodeMode
impl TryFrom<u8> for QrCodeMode
Source§type Error = LoginQrCodeDecodeError
type Error = LoginQrCodeDecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: u8) -> Result<QrCodeMode, <QrCodeMode as TryFrom<u8>>::Error>
fn try_from(value: u8) -> Result<QrCodeMode, <QrCodeMode as TryFrom<u8>>::Error>
Performs the conversion.
impl Eq for QrCodeMode
impl StructuralPartialEq for QrCodeMode
Auto Trait Implementations§
impl Freeze for QrCodeMode
impl RefUnwindSafe for QrCodeMode
impl Send for QrCodeMode
impl Sync for QrCodeMode
impl Unpin for QrCodeMode
impl UnwindSafe for QrCodeMode
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<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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