pub struct FxaStateMachineChecker { /* private fields */ }
Implementations§
source§impl FxaStateMachineChecker
impl FxaStateMachineChecker
pub fn new() -> Self
sourcepub fn handle_public_event(&self, event: FxaEvent)
pub fn handle_public_event(&self, event: FxaEvent)
Advance the internal state based on a public event
sourcepub fn handle_internal_event(&self, event: FxaStateCheckerEvent)
pub fn handle_internal_event(&self, event: FxaStateCheckerEvent)
Advance the internal state based on an internal event
sourcepub fn check_public_state(&self, state: FxaState)
pub fn check_public_state(&self, state: FxaState)
Check the internal state
Call this when processQueue
/processEvent
has advanced the existing state machine to a public state.
sourcepub fn check_internal_state(&self, state: FxaStateCheckerState)
pub fn check_internal_state(&self, state: FxaStateCheckerState)
Check the internal state
Call this when a FirefoxAccount call is about to be made
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FxaStateMachineChecker
impl !RefUnwindSafe for FxaStateMachineChecker
impl Send for FxaStateMachineChecker
impl Sync for FxaStateMachineChecker
impl Unpin for FxaStateMachineChecker
impl !UnwindSafe for FxaStateMachineChecker
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<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