pub struct RootOnly {
pub now: Clock,
}Expand description
A host with only the root lane and no task runtime: every task operation that needs one is refused.
Fields§
§now: ClockTrait Implementations§
Source§impl TaskHost for RootOnly
impl TaskHost for RootOnly
Source§fn caller_task_id(&self, _lane: &str) -> Option<String>
fn caller_task_id(&self, _lane: &str) -> Option<String>
Task that owns
lane, or None for the root lane.Source§fn strategy(&self, definition: &str) -> Result<String, String>
fn strategy(&self, definition: &str) -> Result<String, String>
Execution strategy of a registered definition (“deterministic” | “predict” | “rlm”).
Source§fn tasks(&self) -> Result<Vec<Value>, String>
fn tasks(&self) -> Result<Vec<Value>, String>
Every task of the session (
NativeTask objects: id, parentId, definition, state, …).Source§fn spawn(
&self,
_request: &Value,
_parent: Option<&str>,
) -> Result<Value, String>
fn spawn( &self, _request: &Value, _parent: Option<&str>, ) -> Result<Value, String>
Admits
request ({definition, input, model?, key?, timeoutMs?, lane?}) as a child of parent.Source§fn result(&self, _task_id: &str) -> Result<Value, String>
fn result(&self, _task_id: &str) -> Result<Value, String>
Blocks until the task’s durable terminal result (
NativeResult).fn cancel(&self, _task_id: &str, _reason: &str) -> Result<Value, String>
Source§fn steer(&self, _task_id: &str, _message: &str) -> Result<bool, String>
fn steer(&self, _task_id: &str, _message: &str) -> Result<bool, String>
Queues a steering message into a running task’s lane; false when it has no live lane.
fn now(&self) -> i64
Source§fn pin_lane(&self, _lane: &str, _holder: &str) -> bool
fn pin_lane(&self, _lane: &str, _holder: &str) -> bool
Keeps a lane’s Python kernel alive for
holder; false when the host has no pool or no pin capacity left.fn unpin_lane(&self, _lane: &str, _holder: &str)
Auto Trait Implementations§
impl !RefUnwindSafe for RootOnly
impl !UnwindSafe for RootOnly
impl Forget for RootOnly
impl Freeze for RootOnly
impl Move for RootOnly
impl Send for RootOnly
impl Sync for RootOnly
impl Unpin for RootOnly
impl UnsafeUnpin for RootOnly
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