pub trait ConfigUpdatesRunner:
Send
+ Sync
+ 'static {
// Required method
fn run(
&self,
) -> impl Future<Output = Result<(), GenericError>> + Send + 'static;
}Expand description
Applies the configuration updates that a remote agent’s configuration system receives from the Datadog Agent.
Required Methods§
Sourcefn run(&self) -> impl Future<Output = Result<(), GenericError>> + Send + 'static
fn run(&self) -> impl Future<Output = Result<(), GenericError>> + Send + 'static
Applies each update from the Datadog Agent until the configuration stream closes.
Each call MUST continue from where the previous call stopped, so that the caller can run this again after a call fails or panics.
§Errors
Returns an error when the configuration stream closes. If the stream can’t reopen, each later call SHOULD fail in the same way at once.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.