Skip to main content

Prompt

Trait Prompt 

Source
pub trait Prompt: EventEmitter<PromptResponse> + Focusable { }
Expand description

A view that can be shown as a prompt in a window.

A prompt is a view that emits a PromptResponse and can take focus. Every view that meets those bounds is a Prompt, so you don’t implement this trait yourself. Pass the view to PromptHandle::with_view from a prompt builder.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§