tvl-depot/tvix/nix-compat/src/nix_daemon/mod.rs
Vova Kryachko 9d114bf040 feat(nix-daemon): Implement QueryPathInfo and IsValidPath.
Change-Id: Ia601e2eae24a2bc13d8851b2e8ed9d6c1808bb35
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12745
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: Vladimir Kryachko <v.kryachko@gmail.com>
Tested-by: BuildkiteCI
2024-11-12 03:06:54 +00:00

18 lines
407 B
Rust

pub mod worker_protocol;
use std::io::Result;
use types::UnkeyedValidPathInfo;
use crate::store_path::StorePath;
pub mod handler;
pub mod types;
/// Represents all possible operations over the nix-daemon protocol.
pub trait NixDaemonIO {
fn query_path_info(
&self,
path: &StorePath<String>,
) -> impl std::future::Future<Output = Result<Option<UnkeyedValidPathInfo>>> + Send;
}