Struct serde_spaniel::stdio::ReadWritePrompt
source · [−]pub struct ReadWritePrompt<R, W> { /* private fields */ }
Expand description
Prompt which reads and writes via std::io
traits.
Implementations
sourceimpl<R: BufRead, W: Write> ReadWritePrompt<R, W>
impl<R: BufRead, W: Write> ReadWritePrompt<R, W>
pub fn new_requester(read: R, write: W, is_interactive: bool) -> Self
sourceimpl<W: Write> ReadWritePrompt<(), W>
impl<W: Write> ReadWritePrompt<(), W>
pub fn new_responder(write: W) -> Self
Trait Implementations
sourceimpl<R: BufRead, W: Write> PromptRequester for ReadWritePrompt<R, W>
impl<R: BufRead, W: Write> PromptRequester for ReadWritePrompt<R, W>
sourcefn is_interactive(&self) -> bool
fn is_interactive(&self) -> bool
Returns true if the prompt is currently interactive.
sourceimpl<R, W: Write> PromptResponder for ReadWritePrompt<R, W>
impl<R, W: Write> PromptResponder for ReadWritePrompt<R, W>
Auto Trait Implementations
impl<R, W> RefUnwindSafe for ReadWritePrompt<R, W> where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for ReadWritePrompt<R, W> where
R: Send,
W: Send,
impl<R, W> Sync for ReadWritePrompt<R, W> where
R: Sync,
W: Sync,
impl<R, W> Unpin for ReadWritePrompt<R, W> where
R: Unpin,
W: Unpin,
impl<R, W> UnwindSafe for ReadWritePrompt<R, W> where
R: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more