pub trait OperatorProvider:
Send
+ Sync
+ 'static {
// Required method
fn prompt(
&self,
text: &str,
publish: Box<dyn FnOnce(Arc<dyn OperatorWithdraw>) + Send>,
) -> ProviderResult;
}Expand description
A blocking provider publishes a withdraw handle as soon as one exists, then returns only when its prompt has ended. Publishing is allowed to be delayed: the daemon’s timeout also covers setup and a delayed handle is still withdrawn.
Required Methods§
fn prompt( &self, text: &str, publish: Box<dyn FnOnce(Arc<dyn OperatorWithdraw>) + Send>, ) -> ProviderResult
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".