struct LoginRuntime {
in_flight: AtomicBool,
cancelled: AtomicBool,
phase: Mutex<LoginPhase>,
validate: Arc<dyn Fn(&RobloxCookie) -> Result<AccountIdentity, LoginError> + Send + Sync + 'static>,
store: Arc<dyn Fn(&AccountIdentity, &RobloxCookie) -> Result<(), LoginError> + Send + Sync + 'static>,
notify: Arc<dyn Fn(LoginNotice) + Send + Sync + 'static>,
}Expand description
State shared by one sign-in window’s callbacks.
Fields§
§in_flight: AtomicBoolWhether a cookie check is running.
cancelled: AtomicBoolSet once the window closes or the sign-in fails, stopping further checks.
phase: Mutex<LoginPhase>§validate: Arc<dyn Fn(&RobloxCookie) -> Result<AccountIdentity, LoginError> + Send + Sync + 'static>§store: Arc<dyn Fn(&AccountIdentity, &RobloxCookie) -> Result<(), LoginError> + Send + Sync + 'static>§notify: Arc<dyn Fn(LoginNotice) + Send + Sync + 'static>Implementations§
Source§impl LoginRuntime
impl LoginRuntime
Sourcefn set_phase(&self, phase: LoginPhase)
fn set_phase(&self, phase: LoginPhase)
Replaces the current phase.
Auto Trait Implementations§
impl !Freeze for LoginRuntime
impl !RefUnwindSafe for LoginRuntime
impl !UnwindSafe for LoginRuntime
impl Send for LoginRuntime
impl Sync for LoginRuntime
impl Unpin for LoginRuntime
impl UnsafeUnpin for LoginRuntime
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