about summary refs log blame commit diff
path: root/tvix/nix-compat/src/nix_daemon/mod.rs
blob: d6e60aa9a4dcf55954e07a3011e9f1e2536adbd4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                 

                


                                                                    



                                                                                        
 
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;
}