pub enum LoginProgress {
Starting,
EstablishingSecureChannel {
check_code: CheckCode,
},
WaitingForToken {
user_code: String,
},
Done,
}Available on crate feature
e2e-encryption only.Expand description
Type telling us about the progress of the QR code login.
Variants§
Starting
We’re just starting up, this is the default and initial state.
EstablishingSecureChannel
We have established the secure channel, but we need to let the other
side know about the CheckCode so they can verify that the secure
channel is indeed secure.
WaitingForToken
We’re waiting for the OAuth 2.0 authorization server to give us the access token. This will only happen if the other device allows the OAuth 2.0 authorization server to do so.
Fields
Done
The login process has completed.
Trait Implementations§
Source§impl Clone for LoginProgress
impl Clone for LoginProgress
Source§fn clone(&self) -> LoginProgress
fn clone(&self) -> LoginProgress
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 LoginProgress
impl Debug for LoginProgress
Source§impl Default for LoginProgress
impl Default for LoginProgress
Source§fn default() -> LoginProgress
fn default() -> LoginProgress
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoginProgress
impl RefUnwindSafe for LoginProgress
impl Send for LoginProgress
impl Sync for LoginProgress
impl Unpin for LoginProgress
impl UnwindSafe for LoginProgress
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,
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,
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