pub struct UnifiedCommandExecutor { /* private fields */ }Expand description
Unified command executor that provides parity across platforms
Implementations§
Source§impl UnifiedCommandExecutor
impl UnifiedCommandExecutor
Sourcepub fn new(config: UnifiedExecutorConfig) -> Result<Self, UbiquityError>
pub fn new(config: UnifiedExecutorConfig) -> Result<Self, UbiquityError>
Create a new unified executor with the given configuration
Sourcepub fn auto() -> Result<Self, UbiquityError>
pub fn auto() -> Result<Self, UbiquityError>
Create a new unified executor with automatic mode detection
Sourcepub fn mode(&self) -> ExecutionMode
pub fn mode(&self) -> ExecutionMode
Get the current execution mode
Sourcepub fn switch_mode(&mut self, mode: ExecutionMode) -> Result<(), UbiquityError>
pub fn switch_mode(&mut self, mode: ExecutionMode) -> Result<(), UbiquityError>
Switch to a different execution mode
Sourcepub fn command(&self, command: impl Into<String>) -> CommandBuilder<'_>
pub fn command(&self, command: impl Into<String>) -> CommandBuilder<'_>
Create a command builder
Trait Implementations§
Source§impl CommandExecutor for UnifiedCommandExecutor
impl CommandExecutor for UnifiedCommandExecutor
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
request: CommandRequest,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = CommandEvent> + Send>>, UbiquityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
request: CommandRequest,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = CommandEvent> + Send>>, UbiquityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a command and return a stream of events
Auto Trait Implementations§
impl !RefUnwindSafe for UnifiedCommandExecutor
impl !UnwindSafe for UnifiedCommandExecutor
impl Freeze for UnifiedCommandExecutor
impl Send for UnifiedCommandExecutor
impl Sync for UnifiedCommandExecutor
impl Unpin for UnifiedCommandExecutor
impl UnsafeUnpin for UnifiedCommandExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more