pub struct DaemonStateMachineContext { /* private fields */ }Expand description
An implementation of the state machine defined by DaemonStateMachine.
Implementations§
Source§impl DaemonStateMachineContext
impl DaemonStateMachineContext
Sourcepub fn new(
daemon: Arc<dyn NydusDaemon>,
request_receiver: Receiver<DaemonStateMachineInput>,
result_sender: Sender<Result<()>>,
) -> Self
pub fn new( daemon: Arc<dyn NydusDaemon>, request_receiver: Receiver<DaemonStateMachineInput>, result_sender: Sender<Result<()>>, ) -> Self
Create a new instance of DaemonStateMachineContext.
Sourcepub fn kick_state_machine(self) -> Result<JoinHandle<Result<()>>>
pub fn kick_state_machine(self) -> Result<JoinHandle<Result<()>>>
Create a worker thread to run event loop for the state machine.
Auto Trait Implementations§
impl Freeze for DaemonStateMachineContext
impl !RefUnwindSafe for DaemonStateMachineContext
impl Send for DaemonStateMachineContext
impl !Sync for DaemonStateMachineContext
impl Unpin for DaemonStateMachineContext
impl !UnwindSafe for DaemonStateMachineContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more