pub trait Runnable: Send {
// Required methods
fn kind(&self) -> String;
fn rules(&self) -> Vec<Rule>;
fn start(
self: Box<Self>,
client: Client,
ctx: Arc<Context>,
) -> Pin<Box<dyn Future<Output = ()> + Send>>;
}Available on crate feature
k8s only.Expand description
A controller, its kind erased, for the Operator.
Required Methods§
fn kind(&self) -> String
fn rules(&self) -> Vec<Rule>
fn start( self: Box<Self>, client: Client, ctx: Arc<Context>, ) -> Pin<Box<dyn Future<Output = ()> + Send>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".