fslite-command 0.1.0

A transport-independent, async virtual filesystem with a SQLite-backed persistent backend, HTTP adapter, and CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use async_trait::async_trait;
use fslite_core::{FsResult, RequestContext};

use crate::{Command, CommandOutput};

/// Executes one typed [`Command`] against some backend, local or remote.
#[async_trait]
pub trait Executor: Send + Sync {
    /// Runs `command` under `ctx` and returns its typed result.
    async fn execute(&self, ctx: &RequestContext, command: Command) -> FsResult<CommandOutput>;
}