Skip to main content

Sidecar

Trait Sidecar 

Source
pub trait Sidecar {
    // Required method
    fn to_expr(
        &self,
        flow_name: &str,
        location_key: LocationKey,
        location_type: LocationType,
        location_name: &str,
        dfir_ident: &Ident,
    ) -> Expr;
}
Expand description

Used to add a sidecar to generated code.

Required Methods§

Source

fn to_expr( &self, flow_name: &str, location_key: LocationKey, location_type: LocationType, location_name: &str, dfir_ident: &Ident, ) -> Expr

Generates code to create a sidecar.

The generated code should be an expression which evaluates as a Future.

Implementors§