Files
galaxy/crates/computer_use/src/noop.rs
T

37 lines
754 B
Rust

use async_trait::async_trait;
use crate::ActionResult;
pub fn is_supported_on_current_platform() -> bool {
false
}
/// Reports whether background, per-window control is available. The noop backend performs no
/// real actions, so per-window background control is unsupported.
pub fn background_supported() -> bool {
false
}
pub struct Actor;
impl Actor {
pub fn new() -> Self {
Self
}
}
#[async_trait]
impl super::Actor for Actor {
fn platform(&self) -> Option<super::Platform> {
None
}
async fn perform_actions(
&mut self,
_actions: &[super::TargetedAction],
_options: super::Options,
) -> Result<ActionResult, String> {
Ok(ActionResult::legacy(None, None))
}
}