pub struct OnUserDialog(/* private fields */);Expand description
Renders request_user_dialog dialogs and returns the user’s choice,
e.g. UserDialogResponse::completed("retry_fallback") for a
refusal_fallback_prompt. List the kinds it handles in
Initialize::supported_dialog_kinds; the CLI sends no other kind.
Implementations§
Source§impl OnUserDialog
impl OnUserDialog
pub fn new<F, Fut>(f: F) -> Selfwhere
F: Fn(UserDialogRequest) -> Fut + Send + Sync + 'static,
Fut: Future<Output = UserDialogResponse> + Send + 'static,
Trait Implementations§
Source§impl Clone for OnUserDialog
impl Clone for OnUserDialog
Auto Trait Implementations§
impl !RefUnwindSafe for OnUserDialog
impl !UnwindSafe for OnUserDialog
impl Forget for OnUserDialog
impl Freeze for OnUserDialog
impl Move for OnUserDialog
impl Send for OnUserDialog
impl Sync for OnUserDialog
impl Unpin for OnUserDialog
impl UnsafeUnpin for OnUserDialog
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