Skip to main content

Runnable

Trait Runnable 

Source
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§

Source

fn kind(&self) -> String

Source

fn rules(&self) -> Vec<Rule>

Source

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".

Implementors§

Source§

impl<K> Runnable for Controller<K>
where K: Resource<DynamicType = ()> + Clone + DeserializeOwned + Serialize + Debug + Send + Sync + 'static, <K as Resource>::Scope: Scope,