pub struct QuestionnaireBridge { /* private fields */ }Expand description
Shared bridge between the questionnaire tool (agent thread) and the TUI
overlay (main thread). Created in oxi-cli, injected into both the tool
and AppState.
Implementations§
Source§impl QuestionnaireBridge
impl QuestionnaireBridge
Sourcepub fn set(&self, pending: PendingQuestionnaire) -> bool
pub fn set(&self, pending: PendingQuestionnaire) -> bool
Store a pending questionnaire. Called by QuestionnaireTool::execute.
Returns false if another questionnaire is already pending (should not
happen in sequential tool execution, but guards against races).
Sourcepub fn try_take(&self) -> Option<PendingQuestionnaire>
pub fn try_take(&self) -> Option<PendingQuestionnaire>
Try to take the pending questionnaire. Called by the TUI main loop polling.
Returns None if nothing is pending or already taken.
Sourcepub fn has_pending(&self) -> bool
pub fn has_pending(&self) -> bool
Returns true if a questionnaire is currently pending.
Trait Implementations§
Source§impl Clone for QuestionnaireBridge
impl Clone for QuestionnaireBridge
Source§fn clone(&self) -> QuestionnaireBridge
fn clone(&self) -> QuestionnaireBridge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QuestionnaireBridge
impl !RefUnwindSafe for QuestionnaireBridge
impl Send for QuestionnaireBridge
impl Sync for QuestionnaireBridge
impl Unpin for QuestionnaireBridge
impl UnsafeUnpin for QuestionnaireBridge
impl !UnwindSafe for QuestionnaireBridge
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