pub trait EngineManager {
    // Required methods
    fn send_modeling_cmd(
        &mut self,
        id: Uuid,
        source_range: SourceRange,
        cmd: ModelingCmd
    ) -> Result<(), KclError>;
    fn send_modeling_cmd_get_response<'life0, 'async_trait>(
        &'life0 mut self,
        id: Uuid,
        source_range: SourceRange,
        cmd: ModelingCmd
    ) -> Pin<Box<dyn Future<Output = Result<OkWebSocketResponseData, KclError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn send_modeling_cmd( &mut self, id: Uuid, source_range: SourceRange, cmd: ModelingCmd ) -> Result<(), KclError>

Send a modeling command. Do not wait for the response message.

source

fn send_modeling_cmd_get_response<'life0, 'async_trait>( &'life0 mut self, id: Uuid, source_range: SourceRange, cmd: ModelingCmd ) -> Pin<Box<dyn Future<Output = Result<OkWebSocketResponseData, KclError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Send a modeling command and wait for the response message.

Implementors§