AutoCompleteAsyncPopulator
struct · ferroui-controls · v0.5.0
struct AutoCompleteAsyncPopulator
The asynchronous populator of an AutoCompleteBox: given the search
text and a cancellation token it produces the items for the drop-down.
The future is driven by the dispatcher of the control.
A populator is a reference: copies compare equal to what they were copied from.
Members
new
fn new(populator: impl Fn(Option<String>, CancellationToken) -> AutoCompletePopulation + 'static) -> Self
Wraps a populator function.
invoke
fn invoke(self: &Self, search_text: Option<String>, cancellation_token: CancellationToken) -> AutoCompletePopulation
Calls the populator.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherClonePartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.