pub struct SignalActuator { /* private fields */ }Implementations§
Source§impl SignalActuator
impl SignalActuator
pub fn new() -> Self
Sourcepub fn register_gentle(&mut self, s: &Snapshot)
pub fn register_gentle(&mut self, s: &Snapshot)
Registers the gentle actions of every model server in the snapshot, keyed by its group.
Sourcepub fn gentle_for(&self, group_id: &str) -> &[GentleAction]
pub fn gentle_for(&self, group_id: &str) -> &[GentleAction]
The registered gentle actions of a group.
Trait Implementations§
Source§impl Actuator for SignalActuator
impl Actuator for SignalActuator
Source§fn graceful_for(&self, group_id: &str) -> Vec<String>
fn graceful_for(&self, group_id: &str) -> Vec<String>
Graceful (adapter) actions that free a group’s memory without a signal, described for the user
(e.g. “ollama: unload llama3:8b”). Empty when the group has none (SPEC §10, §13: try these first).
Source§fn observe(&mut self, snapshot: &Snapshot)
fn observe(&mut self, snapshot: &Snapshot)
Refreshes per-snapshot state (which model servers currently offer a graceful unload).
fn execute(&mut self, plan: &ActionPlan) -> Vec<ActionOutcome>
Source§impl Debug for SignalActuator
impl Debug for SignalActuator
Auto Trait Implementations§
impl Forget for SignalActuator
impl Freeze for SignalActuatorwhere
*const LeafNode<String, Vec<GentleAction>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Vec<GentleAction>)>>: Freeze,
impl Move for SignalActuator
impl RefUnwindSafe for SignalActuator
impl Send for SignalActuatorwhere
NodeRef<Owned, String, Vec<GentleAction>, LeafOrInternal>: Send,
BoxRaw<(String, Vec<GentleAction>)>: Send,
impl Sync for SignalActuatorwhere
NodeRef<Owned, String, Vec<GentleAction>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<GentleAction>)>: Sync,
impl Unpin for SignalActuatorwhere
*const LeafNode<String, Vec<GentleAction>> is !null: Unpin,
Box<(String, Vec<GentleAction>)>: Unpin,
impl UnsafeUnpin for SignalActuatorwhere
*const LeafNode<String, Vec<GentleAction>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Vec<GentleAction>)>>: UnsafeUnpin,
impl UnwindSafe for SignalActuator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more