pub struct Terminal<R, W> { /* private fields */ }Expand description
A person at a terminal: told on one stream and answering on another.
Implementations§
Trait Implementations§
Source§impl<R: BufRead, W: Write> Person for Terminal<R, W>
impl<R: BufRead, W: Write> Person for Terminal<R, W>
Source§fn answer(&mut self, ask: &Ask) -> Option<String>
fn answer(&mut self, ask: &Ask) -> Option<String>
Asks for a text.
None when they do not answer.Source§fn approve(&mut self, ask: &Ask) -> Option<Verdict>
fn approve(&mut self, ask: &Ask) -> Option<Verdict>
Asks them to approve work.
None when they do not answer.Auto Trait Implementations§
impl<R, W> Forget for Terminal<R, W>
impl<R, W> Freeze for Terminal<R, W>
impl<R, W> Move for Terminal<R, W>
impl<R, W> RefUnwindSafe for Terminal<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for Terminal<R, W>
impl<R, W> Sync for Terminal<R, W>
impl<R, W> Unpin for Terminal<R, W>
impl<R, W> UnsafeUnpin for Terminal<R, W>where
R: UnsafeUnpin,
W: UnsafeUnpin,
impl<R, W> UnwindSafe for Terminal<R, W>where
R: UnwindSafe,
W: UnwindSafe,
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