pub struct Demux<CA: ConversationAdapter>(/* private fields */);Expand description
A Conversation which asks the questions one at a time.
This is automatically created by ConversationAdapter::into_conversation.
Trait Implementationsยง
Sourceยงimpl<CA: ConversationAdapter> Conversation for Demux<CA>
impl<CA: ConversationAdapter> Conversation for Demux<CA>
Sourceยงfn communicate(&self, messages: &[Exchange<'_>])
fn communicate(&self, messages: &[Exchange<'_>])
Sends messages to the user. Read more
Auto Trait Implementationsยง
impl<CA> Freeze for Demux<CA>where
CA: Freeze,
impl<CA> RefUnwindSafe for Demux<CA>where
CA: RefUnwindSafe,
impl<CA> Send for Demux<CA>where
CA: Send,
impl<CA> Sync for Demux<CA>where
CA: Sync,
impl<CA> Unpin for Demux<CA>where
CA: Unpin,
impl<CA> UnsafeUnpin for Demux<CA>where
CA: UnsafeUnpin,
impl<CA> UnwindSafe for Demux<CA>where
CA: 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
Sourceยงimpl<C> ConversationAdapter for Cwhere
C: Conversation + ?Sized,
impl<C> ConversationAdapter for Cwhere
C: Conversation + ?Sized,
Sourceยงfn prompt(&self, message: impl AsRef<OsStr>) -> Result<OsString, ErrorCode>
fn prompt(&self, message: impl AsRef<OsStr>) -> Result<OsString, ErrorCode>
Prompts the user for something.
Sourceยงfn masked_prompt(
&self,
message: impl AsRef<OsStr>,
) -> Result<OsString, ErrorCode>
fn masked_prompt( &self, message: impl AsRef<OsStr>, ) -> Result<OsString, ErrorCode>
Prompts the user for something, but hides what the user types.
Sourceยงfn radio_prompt(
&self,
message: impl AsRef<OsStr>,
) -> Result<OsString, ErrorCode>
fn radio_prompt( &self, message: impl AsRef<OsStr>, ) -> Result<OsString, ErrorCode>
[Linux extension] Prompts the user for a yes/no/maybe conditional. Read more
Sourceยงfn binary_prompt(&self, _: (&[u8], u8)) -> Result<BinaryData, ErrorCode>
fn binary_prompt(&self, _: (&[u8], u8)) -> Result<BinaryData, ErrorCode>
[Linux extension] Requests binary data from the user. Read more
Sourceยงfn into_conversation(self) -> Demux<Self>where
Self: Sized,
fn into_conversation(self) -> Demux<Self>where
Self: Sized,
Lets you use this simple conversation as a full Conversation. Read more