[−][src]Struct serde_spaniel::stdio::ReadWritePrompt
Prompt which reads and writes via std::io
traits.
Implementations
impl<'a> ReadWritePrompt<Stdin, Stdout>
[src]
impl<R: BufRead, W: Write> ReadWritePrompt<R, W>
[src]
pub fn new_requester(read: R, write: W, is_interactive: bool) -> Self
[src]
impl<W: Write> ReadWritePrompt<(), W>
[src]
pub fn new_responder(write: W) -> Self
[src]
Trait Implementations
impl<'a, R: BufRead, W: Write> PromptRequester for ReadWritePrompt<R, W>
[src]
pub fn is_interactive(&self) -> bool
[src]
pub fn request(
&mut self,
_kind: RequestKind,
prompt: &str,
_variants: &[&str]
) -> Result<String>
[src]
&mut self,
_kind: RequestKind,
prompt: &str,
_variants: &[&str]
) -> Result<String>
pub fn report(&mut self, _kind: ReportKind, msg: &str) -> Result<()>
[src]
impl<'a, R, W: Write> PromptResponder for ReadWritePrompt<R, W>
[src]
Auto Trait Implementations
impl<R, W> RefUnwindSafe for ReadWritePrompt<R, W> where
R: RefUnwindSafe,
W: RefUnwindSafe,
[src]
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for ReadWritePrompt<R, W> where
R: Send,
W: Send,
[src]
R: Send,
W: Send,
impl<R, W> Sync for ReadWritePrompt<R, W> where
R: Sync,
W: Sync,
[src]
R: Sync,
W: Sync,
impl<R, W> Unpin for ReadWritePrompt<R, W> where
R: Unpin,
W: Unpin,
[src]
R: Unpin,
W: Unpin,
impl<R, W> UnwindSafe for ReadWritePrompt<R, W> where
R: UnwindSafe,
W: UnwindSafe,
[src]
R: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,