about summary refs log blame commit diff
path: root/tvix/store/src/fuse/mod.rs
blob: 7206cf3076d0ccec6168e3a642d0cd1db0e38ff9 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                                                   
                   
 
                 

                                                 
                                                

 
           


                                                     
                                                    
               

                         
                              
                              



         
                                  
use crate::{
    blobservice::BlobService, directoryservice::DirectoryService, pathinfoservice::PathInfoService,
};
use std::sync::Arc;

pub struct FUSE {
    blob_service: Arc<dyn BlobService>,
    directory_service: Arc<dyn DirectoryService>,
    path_info_service: Arc<dyn PathInfoService>,
}

impl FUSE {
    pub fn new(
        blob_service: Arc<dyn BlobService>,
        directory_service: Arc<dyn DirectoryService>,
        path_info_service: Arc<dyn PathInfoService>,
    ) -> Self {
        Self {
            blob_service,
            directory_service,
            path_info_service,
        }
    }
}

impl fuser::Filesystem for FUSE {}