pub enum FxaStateCheckerEvent {
GetAuthStateSuccess {
auth_state: FxaRustAuthState,
},
BeginOAuthFlowSuccess {
oauth_url: String,
},
BeginPairingFlowSuccess {
oauth_url: String,
},
CompleteOAuthFlowSuccess,
InitializeDeviceSuccess,
EnsureDeviceCapabilitiesSuccess,
CheckAuthorizationStatusSuccess {
active: bool,
},
DisconnectSuccess,
GetProfileSuccess,
CallError,
EnsureCapabilitiesAuthError,
}
Expand description
Internal state machine events
These represent the results of the method calls for each internal state.
Each internal state machine uses the same Event
enum, but they only actually respond to a subset of the variants.
Variants§
GetAuthStateSuccess
Fields
§
auth_state: FxaRustAuthState
BeginOAuthFlowSuccess
BeginPairingFlowSuccess
CompleteOAuthFlowSuccess
InitializeDeviceSuccess
EnsureDeviceCapabilitiesSuccess
CheckAuthorizationStatusSuccess
DisconnectSuccess
GetProfileSuccess
CallError
EnsureCapabilitiesAuthError
Auth error for the ensure_capabilities
call that we do on startup.
This should likely go away when we do https://bugzilla.mozilla.org/show_bug.cgi?id=1868418
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more