pub struct ChildLogin { /* private fields */ }Implementations§
Source§impl ChildLogin
impl ChildLogin
pub fn new(session: Arc<Session>) -> Self
Sourcepub async fn shutdown(&self)
pub async fn shutdown(&self)
Stop a login that is still running, for serve’s own shutdown.
Not part of LoginFlow: it is not a tool, and it must not report anything to a
model. serve exits with std::process::exit, which runs no destructors, so
kill_on_drop never fires – and the child is in its own process group precisely
so that a signal to serve does not reach it. Without this a client shutting the
server down mid-login leaves Chrome holding the profile’s lock.
Trait Implementations§
Source§impl LoginFlow for ChildLogin
impl LoginFlow for ChildLogin
Source§fn start<'life0, 'async_trait>(
&'life0 self,
debug_port: u16,
) -> Pin<Box<dyn Future<Output = Result<LoginProgress, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
debug_port: u16,
) -> Pin<Box<dyn Future<Output = Result<LoginProgress, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Open a browser for the user to sign into, and return the instructions to relay.
fn status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<LoginProgress, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<LoginProgress, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for ChildLogin
impl !RefUnwindSafe for ChildLogin
impl Send for ChildLogin
impl Sync for ChildLogin
impl Unpin for ChildLogin
impl UnsafeUnpin for ChildLogin
impl !UnwindSafe for ChildLogin
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