pub struct HandoffCoordinatorCore { /* private fields */ }Expand description
Pure state machine for one prefill-to-decode ownership handoff.
Drivers execute returned actions and feed action outcomes and asynchronous facts back into this core. The core owns ordering only; it owns no engine or transport resources.
Implementations§
Source§impl HandoffCoordinatorCore
impl HandoffCoordinatorCore
pub fn new(handoff_id: HandoffId, order: HandoffOrder) -> Self
pub fn start(&mut self) -> Result<Vec<IssuedHandoffAction>>
pub fn on_fact(&mut self, fact: HandoffFact) -> Result<Vec<IssuedHandoffAction>>
pub fn on_action_outcome( &mut self, action_id: HandoffActionId, outcome: HandoffActionOutcome, ) -> Result<Vec<IssuedHandoffAction>>
pub fn is_complete(&self) -> bool
pub fn completion(&self) -> Option<HandoffCompletion>
Auto Trait Implementations§
impl Freeze for HandoffCoordinatorCore
impl RefUnwindSafe for HandoffCoordinatorCore
impl Send for HandoffCoordinatorCore
impl Sync for HandoffCoordinatorCore
impl Unpin for HandoffCoordinatorCore
impl UnsafeUnpin for HandoffCoordinatorCore
impl UnwindSafe for HandoffCoordinatorCore
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