pub struct LocalSource { /* private fields */ }surface only.Expand description
The engine’s source for surfaces in the same process as the agents (spec 3.3 §6): the
session store the feed numbers events from, the approval service decisions go through,
and whichever of an in-process Kernel, a Harness and a Runner runs the turns.
| Part | Gives the engine |
|---|---|
sessions | the feed (required; a harness or runner brings its own) |
approvals | decisions: the inbox and decide (S-I2) |
kernel | agents from the process table, turns as processes, a message for the turn this replica runs (Kernel::steer), stop and resume through the kernel’s freeze, spend and its daily cap, quiet time, the /proc ledger |
harness | the mode and set_mode, “Always allow” as a standing rule, turns, a message for a running turn and resuming decided calls without a kernel |
runner | turns, a message for a running turn (Runner::steer), resuming decided calls, and the runner’s kill switch, for apps without a harness |
§Example
use std::sync::Arc;
use adk_core::{InMemoryApprovalStore, StoreApprovalService};
use adk_session::InMemorySessionService;
use adk_surface::LocalSource;
let source = LocalSource::builder("adk-rust")
.sessions(Arc::new(InMemorySessionService::new()))
.approvals(Arc::new(StoreApprovalService::new(Arc::new(InMemoryApprovalStore::new()))))
.build()
.unwrap();Implementations§
Source§impl LocalSource
impl LocalSource
Sourcepub fn builder(app_name: impl Into<String>) -> LocalSourceBuilder
pub fn builder(app_name: impl Into<String>) -> LocalSourceBuilder
A builder for the sessions of app_name.
Trait Implementations§
Source§impl Clone for LocalSource
impl Clone for LocalSource
Source§fn clone(&self) -> LocalSource
fn clone(&self) -> LocalSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LocalSource
impl Debug for LocalSource
Source§impl Source for LocalSource
impl Source for LocalSource
Source§fn primary_agent(&self) -> Option<String>
fn primary_agent(&self) -> Option<String>
The kernel target new messages run on, else the harness’s agent (spec 3.3 §5.5).
Source§fn rates_high(&self, request: &ApprovalRequest) -> bool
fn rates_high(&self, request: &ApprovalRequest) -> bool
A tool the kernel’s mounted drivers declare publish_public or financial, the
classes nothing may allow without a person (spec 3.2 K-I9), as the kernel’s own decide
route and chat rate it.
Source§fn moves_money(&self, request: &ApprovalRequest) -> bool
fn moves_money(&self, request: &ApprovalRequest) -> bool
A tool the kernel’s mounted drivers declare financial (spec 3.2 K-I9).
Source§fn turn_failures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<TurnFailure>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn turn_failures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<TurnFailure>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
A kernel’s failed processes of the session, each with the error its run recorded; without a kernel, the turns this source started that ended in an error.
Source§fn start_turn_images<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
text: &'life3 str,
images: &'life4 [MessageImage],
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
LocalSource: 'async_trait,
fn start_turn_images<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
text: &'life3 str,
images: &'life4 [MessageImage],
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
LocalSource: 'async_trait,
A message with images: as the run’s content on a kernel, else straight to the
harness or the runner (spec 3.3 §5.1).
Source§fn stop_turn<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn stop_turn<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
A kernel kills the session’s running and queued runs; a harness or a runner cancels its run in flight. A run waiting on a decision is left to wait.
Source§fn steer<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
text: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Pin<Box<dyn Future<Output = Result<Steered, SurfaceError>> + Send>>>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn steer<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
text: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Pin<Box<dyn Future<Output = Result<Steered, SurfaceError>> + Send>>>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
The turn this process runs takes the message: a kernel’s claim of the session on this replica, else the harness’s or the runner’s run in flight.
Source§fn transcript<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Event>>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn transcript<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Event>>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
Source§fn changed<'life0, 'async_trait>(
&'life0 self,
max: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalSource: 'async_trait,
fn changed<'life0, 'async_trait>(
&'life0 self,
max: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalSource: 'async_trait,
max passes.Source§fn requests<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: Option<&'life2 str>,
open_only: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<ApprovalRequest>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn requests<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: Option<&'life2 str>,
open_only: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<ApprovalRequest>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
caller may answer — of the caller’s session session when
it is set (InboxQuery::with_session, spec 3.3 §10 C1) — open ones only when
open_only.Source§fn request<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ApprovalRequest>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn request<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ApprovalRequest>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
Source§fn decide<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
expected_version: u64,
decision: ApprovalDecision,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn decide<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
expected_version: u64,
decision: ApprovalDecision,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
decision at expected_version: ApprovalService::decide (spec 3.3 §6,
S-I2). Never retried.Source§fn resolved<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn resolved<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
Source§fn evidence_kept<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Vec<EvidenceKept>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn evidence_kept<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Vec<EvidenceKept>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
request holds as evidence is still kept, in the order of its
evidence (spec 3.7 §8.2). The default cannot tell, and the card shows each image.Source§fn vision_answers<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn vision_answers<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
session of user, as JSON, oldest first
(spec 3.7 §8.2, the annotated viewer). The default keeps none. Read moreSource§fn keeps_vision_answers(&self) -> bool
fn keeps_vision_answers(&self) -> bool
vision_answers and
vision_image work here, so an image card’s “Open the source
image” opens the annotated viewer (board choice A9). false, the default.Source§fn vision_image<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
digest: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<EvidenceBytes>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn vision_image<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
digest: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<EvidenceBytes>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
image of session of user — a sha256: digest, or the name of an image
artifact the session holds — served only when its bytes hash to the digest a digest
names; None when the session holds no such image. The engine checks the caller owns
the session first (spec 3.7 §8.3: read routes authorised as the inbox is). Read moreSource§fn example_files<'life0, 'life1, 'async_trait>(
&'life0 self,
_user: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<String>>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn example_files<'life0, 'life1, 'async_trait>(
&'life0 self,
_user: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<String>>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
None, the default, when the source saves no examples.Source§fn example_set<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_user: &'life1 str,
file: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn example_set<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_user: &'life1 str,
file: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
file under the fixtures’ root, when there is one. Read moreSource§fn save_example<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_caller: &'life1 Caller,
file: &'life2 str,
set: Value,
image_path: &'life3 str,
image: &'life4 EvidenceBytes,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
LocalSource: 'async_trait,
fn save_example<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_caller: &'life1 Caller,
file: &'life2 str,
set: Value,
image_path: &'life3 str,
image: &'life4 EvidenceBytes,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
LocalSource: 'async_trait,
set to file under the fixtures’ root and the image image
beside it at image_path, relative to the file, when it is not there already
(board choice V13). The run’s own answer is untouched. Read moreSource§fn evidence_image<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
index: usize,
) -> Pin<Box<dyn Future<Output = Result<Option<EvidenceBytes>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn evidence_image<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
index: usize,
) -> Pin<Box<dyn Future<Output = Result<Option<EvidenceBytes>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
indexth image request holds as evidence, read from where its locator says and
served only when its bytes hash to its digest; None when it is no longer kept. The
engine checks the caller may see the request first (spec 3.7 §7.8: surfaces load
evidence with the viewer’s own authorisation). Read moreSource§fn holds_again(&self) -> bool
fn holds_again(&self) -> bool
hold_again and change_image work
here: an edited call with images, or a changed image, is held again for the person
rather than run (spec 3.7 V-I5). false, the default.Source§fn hold_again<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
version: u64,
args: Value,
why: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn hold_again<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
version: u64,
args: Value,
why: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
request’s call again with args, as caller asked for it: the request at
version is closed with why, and the session’s agent holds the call with its new
arguments, and the evidence they make, for the person’s decision (spec 3.7 V-I5). A
call with images never runs on edited arguments nobody saw the images of. Read moreSource§fn change_image<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
version: u64,
change: &'life3 ImageChange,
) -> Pin<Box<dyn Future<Output = Result<ImageChanged, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn change_image<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
version: u64,
change: &'life3 ImageChange,
) -> Pin<Box<dyn Future<Output = Result<ImageChanged, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
change describes from request’s evidence — cut smaller, more of it
covered — keeps it beside the original, and holds the call again with it in place of
the original (board choice A8, spec 3.7 V-I5). Read moreSource§fn run_ended<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Option<DateTime<Utc>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn run_ended<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Option<DateTime<Utc>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
request ended while the request is still open, so the
answer is used when the agent picks the thread up again (board choice A12). None, the
default, when a run still waits or the source cannot tell.Source§fn resolved_by<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn resolved_by<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
resolved, for the answer caller gave: a source that runs the
resumed turn runs it as caller when the session is theirs, so the session’s mode and
standing rules apply to it (spec 3.3 §6). The default calls resolved.Source§fn always_allow_offer<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Option<AlwaysAllowOffer>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn always_allow_offer<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Option<AlwaysAllowOffer>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
request, when this source can create it.Source§fn prepare_always_allow<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuleCommit>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn prepare_always_allow<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuleCommit>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
request, as caller, before the
decision is recorded. Returns a commit the engine runs only once the decision approved
the request: never after a lost version, a denial, or an approval a quorum still waits
on.Source§fn agents<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<AgentState>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn agents<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<AgentState>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
user.Source§fn busy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn busy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
Source§fn waiting_on_decision<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn waiting_on_decision<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
Source§fn start_turn<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
text: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn start_turn<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
text: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
text.Source§fn start_turn_with_images<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
session: &'life3 str,
text: &'life4 str,
images: &'life5 [MessageImage],
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
LocalSource: 'async_trait,
fn start_turn_with_images<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
session: &'life3 str,
text: &'life4 str,
images: &'life5 [MessageImage],
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
LocalSource: 'async_trait,
start_turn_with with the images the person sent with the
thread’s first message (spec 3.3 §5.1). The default sends a message without images
through start_turn_with and reports surface.unsupported for one with them. Read moreSource§fn request_call<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
text: &'life3 str,
call: RequestedCall,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn request_call<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
text: &'life3 str,
call: RequestedCall,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
text that carries call, a call caller asked for
through a form an agent drew (spec 3.3 §7.4 rule 5, wave 4 decision 13). The session’s
agent holds the call as itself, inside its own kernel target, under its own policy,
standing rules, acting context and approval store, for the person’s decision — or
refuses it — before any model call. The default reports surface.unsupported. Read moreSource§fn stop_all<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
reason: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn stop_all<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
reason: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
Source§fn resume_all<'life0, 'life1, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn resume_all<'life0, 'life1, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
Source§fn stopped<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalSource: 'async_trait,
fn stopped<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalSource: 'async_trait,
Source§fn mode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<HarnessMode>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn mode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<HarnessMode>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
Source§fn set_mode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
mode: HarnessMode,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn set_mode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
session: &'life2 str,
mode: HarnessMode,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
Source§fn spend<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<SpendToday>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn spend<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<SpendToday>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
user, and the daily limit.Source§fn quiet_hours(&self) -> Option<QuietHours>
fn quiet_hours(&self) -> Option<QuietHours>
Source§fn serves_kernel_routes(&self) -> bool
fn serves_kernel_routes(&self) -> bool
/api/kernel), so the web home reads them (Served::Kernel).
false, the default.Source§fn keeps_ledger(&self) -> bool
fn keeps_ledger(&self) -> bool
/proc ledger ledger reads: without
one, “While you were away” is empty whatever ran (spec 3.3 §5.1).Source§fn ledger<'life0, 'async_trait>(
&'life0 self,
since: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerEntry>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalSource: 'async_trait,
fn ledger<'life0, 'async_trait>(
&'life0 self,
since: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerEntry>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalSource: 'async_trait,
/proc ledger rows since since, oldest first.Source§fn keeps_agents(&self) -> bool
fn keeps_agents(&self) -> bool
Source§fn agent_definitions<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<AgentDetail>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn agent_definitions<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<AgentDetail>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
user added, suggested ones included; none by default.Source§fn agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AgentDetail>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AgentDetail>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
user added.Source§fn agent_choices<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AgentChoices, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalSource: 'async_trait,
fn agent_choices<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AgentChoices, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalSource: 'async_trait,
Source§fn preview_agent<'life0, 'life1, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: AgentPreviewRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentPreview, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
fn preview_agent<'life0, 'life1, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: AgentPreviewRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentPreview, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalSource: 'async_trait,
Source§fn add_agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
draft: AgentDraft,
digest: &'life2 str,
replaces: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<AgentDetail, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn add_agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
draft: AgentDraft,
digest: &'life2 str,
replaces: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<AgentDetail, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
draft previewed with digest; replaces names the suggestion Change
it first ends.Source§fn change_agent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
version: u64,
draft: AgentDraft,
digest: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<AgentDetail, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn change_agent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
version: u64,
draft: AgentDraft,
digest: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<AgentDetail, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
agent at version to draft, previewed with digest.Source§fn pause_agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AgentDetail, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn pause_agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AgentDetail, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
agent.Source§fn resume_agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AgentDetail, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn resume_agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<AgentDetail, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
agent, paused by hand.Source§fn remove_agent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
version: u64,
digest: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<EndedWork, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn remove_agent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
version: u64,
digest: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<EndedWork, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
agent at version, previewed with digest; returns what ended.Source§fn copy_rule_to_agent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
rule: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<String, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
fn copy_rule_to_agent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
rule: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<String, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LocalSource: 'async_trait,
rule to agent, pinned to it (S-I19); returns its
words.Source§fn agent_threads<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
agent: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, DateTime<Utc>)>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn agent_threads<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
agent: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, DateTime<Utc>)>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
user’s agent agent: each session it ran and when it last changed;
none by default. A removed agent’s threads are read through it (spec 3.3 §5.7).Source§fn agent_of_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
fn agent_of_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
session: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LocalSource: 'async_trait,
session is: its stamp, else the target of its latest run.Source§fn start_turn_with<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
session: &'life3 str,
text: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
LocalSource: 'async_trait,
fn start_turn_with<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
agent: &'life2 str,
session: &'life3 str,
text: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
LocalSource: 'async_trait,
session with agent on text (spec 3.3 §5.7 “Threads”); the
default starts a turn of the source’s own agent.Source§fn screen_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Option<HeldPlan>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn screen_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Option<HeldPlan>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
request’s held call is a step of, when the source keeps it (spec 3.7
Q8). None, the default: every call is decided on a card of its own.Source§fn decide_screen_plan<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
version: u64,
digest: &'life3 str,
allow: bool,
reason: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn decide_screen_plan<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
caller: &'life1 Caller,
request: &'life2 ApprovalRequest,
version: u64,
digest: &'life3 str,
allow: bool,
reason: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
request holds, as caller answered its card
— every step allowed, or denied with reason — and records the decision on request at
version (spec 3.7 Q8, S-I2): an approval runs each step once, in order, with the plan’s
binding, and a step whose target moved is held again for a card of its own. Read moreSource§fn close_screen_plan<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
plan: &'life2 HeldPlan,
why: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn close_screen_plan<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
plan: &'life2 HeldPlan,
why: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), SurfaceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
plan, whose first step request holds, for why: the plan
ends and every step of it still held is cancelled, so none runs (spec 3.7 Q8, V-I17). Read moreSource§fn opens_sessions(&self) -> bool
fn opens_sessions(&self) -> bool
set_mode opens a session the caller names that has no
events yet, so a new thread takes a mode before its first message (spec 3.3 §5.2). The
default says no: a session store cannot tell such a session from another person’s,
so the engine sets the mode of the caller’s own sessions only (S-I8).Auto Trait Implementations§
impl !RefUnwindSafe for LocalSource
impl !UnwindSafe for LocalSource
impl Forget for LocalSource
impl Freeze for LocalSourcewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn SessionService> is !null: Freeze,
PhantomData<ArcInner<dyn SessionService>>: Freeze,
*const ArcInner<dyn ApprovalService> is !null: Freeze,
PhantomData<ArcInner<dyn ApprovalService>>: Freeze,
*const ArcInner<KernelInner> is !null: Freeze,
PhantomData<ArcInner<KernelInner>>: Freeze,
*const ArcInner<Harness> is !null: Freeze,
PhantomData<ArcInner<Harness>>: Freeze,
*const ArcInner<Runner> is !null: Freeze,
PhantomData<ArcInner<Runner>>: Freeze,
*const ArcInner<ControlState> is !null: Freeze,
PhantomData<ArcInner<ControlState>>: Freeze,
*const ArcInner<RwLock<Weak<AgentsInner>>> is !null: Freeze,
PhantomData<ArcInner<RwLock<Weak<AgentsInner>>>>: Freeze,
*const ArcInner<dyn ArtifactService> is !null: Freeze,
PhantomData<ArcInner<dyn ArtifactService>>: Freeze,
*const ArcInner<dyn DurableRunStore> is !null: Freeze,
PhantomData<ArcInner<dyn DurableRunStore>>: Freeze,
*const ArcInner<PreparedRules> is !null: Freeze,
PhantomData<ArcInner<PreparedRules>>: Freeze,
*const ArcInner<FailedTurnLog> is !null: Freeze,
PhantomData<ArcInner<FailedTurnLog>>: Freeze,
impl Move for LocalSource
impl Send for LocalSourcewhere
RawVecInner: Send,
Arc<dyn SessionService>: Send,
Arc<dyn ApprovalService>: Send,
Arc<KernelInner>: Send,
Arc<Harness>: Send,
Arc<Runner>: Send,
Arc<ControlState>: Send,
Arc<RwLock<Weak<AgentsInner>>>: Send,
Arc<dyn ArtifactService>: Send,
Arc<dyn DurableRunStore>: Send,
Arc<PreparedRules>: Send,
Arc<FailedTurnLog>: Send,
impl Sync for LocalSourcewhere
RawVecInner: Sync,
Arc<dyn SessionService>: Sync,
Arc<dyn ApprovalService>: Sync,
Arc<KernelInner>: Sync,
Arc<Harness>: Sync,
Arc<Runner>: Sync,
Arc<ControlState>: Sync,
Arc<RwLock<Weak<AgentsInner>>>: Sync,
Arc<dyn ArtifactService>: Sync,
Arc<dyn DurableRunStore>: Sync,
Arc<PreparedRules>: Sync,
Arc<FailedTurnLog>: Sync,
impl Unpin for LocalSourcewhere
*const u8 is !null: Unpin,
Arc<dyn SessionService>: Unpin,
Arc<dyn ApprovalService>: Unpin,
Arc<KernelInner>: Unpin,
Arc<Harness>: Unpin,
Arc<Runner>: Unpin,
Arc<ControlState>: Unpin,
Arc<RwLock<Weak<AgentsInner>>>: Unpin,
Arc<dyn ArtifactService>: Unpin,
Arc<dyn DurableRunStore>: Unpin,
Arc<PreparedRules>: Unpin,
Arc<FailedTurnLog>: Unpin,
impl UnsafeUnpin for LocalSourcewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn SessionService> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SessionService>>: UnsafeUnpin,
*const ArcInner<dyn ApprovalService> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ApprovalService>>: UnsafeUnpin,
*const ArcInner<KernelInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<KernelInner>>: UnsafeUnpin,
*const ArcInner<Harness> is !null: UnsafeUnpin,
PhantomData<ArcInner<Harness>>: UnsafeUnpin,
*const ArcInner<Runner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Runner>>: UnsafeUnpin,
*const ArcInner<ControlState> is !null: UnsafeUnpin,
PhantomData<ArcInner<ControlState>>: UnsafeUnpin,
*const ArcInner<RwLock<Weak<AgentsInner>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<Weak<AgentsInner>>>>: UnsafeUnpin,
*const ArcInner<dyn ArtifactService> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ArtifactService>>: UnsafeUnpin,
*const ArcInner<dyn DurableRunStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DurableRunStore>>: UnsafeUnpin,
*const ArcInner<PreparedRules> is !null: UnsafeUnpin,
PhantomData<ArcInner<PreparedRules>>: UnsafeUnpin,
*const ArcInner<FailedTurnLog> is !null: UnsafeUnpin,
PhantomData<ArcInner<FailedTurnLog>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreimpl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.