pub struct PendingQuestionnaire {
pub questions: Vec<Question>,
pub responder: Sender<QuestionnaireResponse>,
}Expand description
A pending questionnaire waiting for user interaction.
The responder is a oneshot Sender — the overlay calls send() when
the user submits or cancels, and the tool’s rx.await receives it.
Fields§
§questions: Vec<Question>Questions to display to the user.
responder: Sender<QuestionnaireResponse>Sender end of the response channel. Dropping this (without sending) is equivalent to user dismiss.
Auto Trait Implementations§
impl Freeze for PendingQuestionnaire
impl !RefUnwindSafe for PendingQuestionnaire
impl Send for PendingQuestionnaire
impl Sync for PendingQuestionnaire
impl Unpin for PendingQuestionnaire
impl UnsafeUnpin for PendingQuestionnaire
impl !UnwindSafe for PendingQuestionnaire
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