diff options
Diffstat (limited to 'tvix/nix-compat/src/nix_daemon/mod.rs')
-rw-r--r-- | tvix/nix-compat/src/nix_daemon/mod.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/nix_daemon/mod.rs b/tvix/nix-compat/src/nix_daemon/mod.rs index af487aea37bb..d6e60aa9a4dc 100644 --- a/tvix/nix-compat/src/nix_daemon/mod.rs +++ b/tvix/nix-compat/src/nix_daemon/mod.rs @@ -1,8 +1,18 @@ +pub mod worker_protocol; + +use std::io::Result; + +use types::UnkeyedValidPathInfo; + +use crate::store_path::StorePath; + pub mod handler; pub mod types; -pub mod worker_protocol; /// Represents all possible operations over the nix-daemon protocol. pub trait NixDaemonIO { - // TODO add methods to it. + fn query_path_info( + &self, + path: &StorePath<String>, + ) -> impl std::future::Future<Output = Result<Option<UnkeyedValidPathInfo>>> + Send; } |