Struct nydus::FusedevDaemon
source · pub struct FusedevDaemon { /* private fields */ }Expand description
Nydus daemon to implement FUSE servers by accessing /dev/fuse.
One FUSE mountpoint will be created for each FusedevDaemon object. Every FusedevDaemon object has a built-in Vfs object, which can be used to mount multiple RAFS and/or passthroughfs instances.
Implementations§
source§impl FusedevDaemon
impl FusedevDaemon
sourcepub fn new(
trigger: Sender<DaemonStateMachineInput>,
receiver: Receiver<Result<(), Error>>,
vfs: Arc<Vfs>,
mountpoint: &Path,
threads_cnt: u32,
waker: Arc<Waker>,
bti: BuildTimeInfo,
id: Option<String>,
supervisor: Option<String>,
readonly: bool,
fp: FailoverPolicy
) -> Result<FusedevDaemon, Error>
pub fn new( trigger: Sender<DaemonStateMachineInput>, receiver: Receiver<Result<(), Error>>, vfs: Arc<Vfs>, mountpoint: &Path, threads_cnt: u32, waker: Arc<Waker>, bti: BuildTimeInfo, id: Option<String>, supervisor: Option<String>, readonly: bool, fp: FailoverPolicy ) -> Result<FusedevDaemon, Error>
Create a new instance of FusedevDaemon.
Trait Implementations§
source§impl NydusDaemon for FusedevDaemon
impl NydusDaemon for FusedevDaemon
source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Cast
self to trait object of Any to support object downcast.source§fn version(&self) -> BuildTimeInfo
fn version(&self) -> BuildTimeInfo
Get build and version information.
source§fn get_state(&self) -> DaemonState
fn get_state(&self) -> DaemonState
Get daemon working state.
source§fn set_state(&self, state: DaemonState)
fn set_state(&self, state: DaemonState)
Set daemon working state.
source§fn wait_state_machine(&self) -> Result<(), Error>
fn wait_state_machine(&self) -> Result<(), Error>
Wait for state machine worker thread to exit.
source§fn supervisor(&self) -> Option<String>
fn supervisor(&self) -> Option<String>
Get supervisor configuration information.
source§fn get_default_fs_service(&self) -> Option<Arc<dyn FsService + 'static>>
fn get_default_fs_service(&self) -> Option<Arc<dyn FsService + 'static>>
Set default filesystem service object.
source§fn export_info(&self, include_fs_info: bool) -> Result<String, Error>
fn export_info(&self, include_fs_info: bool) -> Result<String, Error>
Get status information about the daemon.
source§fn trigger_exit(&self) -> Result<(), Error>
fn trigger_exit(&self) -> Result<(), Error>
Trigger transition events to move the state machine to
STOPPED state.source§fn trigger_takeover(&self) -> Result<(), Error>
fn trigger_takeover(&self) -> Result<(), Error>
Trigger
Takeover transition event to take over control from old instance.source§fn trigger_start(&self) -> Result<(), Error>
fn trigger_start(&self) -> Result<(), Error>
Trigger
Start transition event to start the new instance.source§fn get_blob_cache_mgr(&self) -> Option<Arc<BlobCacheMgr>>
fn get_blob_cache_mgr(&self) -> Option<Arc<BlobCacheMgr>>
Get the optional
BlobCacheMgr object.