pub struct WatchedSignIn { /* private fields */ }Expand description
The same sign-in, watched rather than inherited: an app has no terminal to hand over, so it reads what Claude Code prints and can type the fallback code back.
Implementations§
Source§impl WatchedSignIn
impl WatchedSignIn
Sourcepub fn next_line(&self) -> Option<String>
pub fn next_line(&self) -> Option<String>
The next thing Claude Code said, or None once it has finished saying anything.
Blocks, so a caller reads it on a thread of its own.
Sourcepub fn paste(&mut self, line: &str) -> Result<()>
pub fn paste(&mut self, line: &str) -> Result<()>
Types a line back, for the code Claude Code asks to be pasted when the browser cannot reach its callback.
Auto Trait Implementations§
impl !Sync for WatchedSignIn
impl Freeze for WatchedSignIn
impl RefUnwindSafe for WatchedSignIn
impl Send for WatchedSignIn
impl Unpin for WatchedSignIn
impl UnsafeUnpin for WatchedSignIn
impl UnwindSafe for WatchedSignIn
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