Skip to main content

Agent

Struct Agent 

Source
pub struct Agent { /* private fields */ }
Expand description

The configured system prompt followed by each plugin’s prompt fragments, separated by a blank line. Fragments are additive only: a plugin cannot rewrite or drop the prompt.

Implementations§

Source§

impl Agent

Source

pub fn new( provider: Arc<dyn ChatProvider>, tools: Arc<ToolRegistry>, store: SessionStore, system_prompt: String, max_iterations: usize, ) -> Self

Source

pub fn with_max_iterations(self, iterations: usize) -> Self

Stop a run after iterations model <-> tool round-trips. This is the agent’s own budget ([agent] max_iterations); a single run overrides it with RunOptions::max_iterations. 0 is read as 1.

Source

pub fn max_iterations(&self) -> usize

The budget this agent gives a run that asks for none.

Source

pub fn with_tool_concurrency(self, n: usize) -> Self

How many of one turn’s tool calls may be in flight at once. 0 is read as 1; results are committed in the order the model emitted the calls either way.

Source

pub fn with_trace_content(self, on: bool) -> Self

Include prompts, arguments and results in tracing spans. Off by default: the transcript already shows them, and the spans exist for timing and routing.

Source

pub fn trace_content(&self) -> bool

Source

pub fn with_cassette_recording(self, name: &str, path: PathBuf) -> Self

Record every request and reply of this agent’s next run to a cassette file. The cassette is taken as <state>/cassettes/<name>.json.

Source

pub fn with_cassette_replay(self, path: PathBuf) -> Result<Self>

Replay every request of this agent’s next run from a cassette file, failing at the first divergence. The cassette is loaded here, so an unreadable one is a build error, not a runtime surprise.

Source

pub fn take_cassette_recording( &self, ) -> Option<(Arc<RecordingProvider>, String, PathBuf)>

The recorder for the run just finished, if this agent recorded one — with its name and path, for the caller to save. Consumed.

Source

pub fn tool_concurrency(&self) -> usize

The tool gate this agent runs with.

Source

pub fn with_hooks(self, hooks: LoopHooks) -> Self

Register the loop hooks this agent runs. Hooks run in the order given; see crate::hooks for what they may do and why they must be cheap.

Source

pub fn hook_count(&self) -> usize

How many loop hooks are registered.

Source

pub fn with_max_malformed_calls(self, n: usize) -> Self

Stop the run after n consecutive unusable tool calls. 0 leaves it off.

Source

pub fn plugins(&self) -> &Plugins

The plugins this agent loaded, including any that failed to load and why.

Source

pub fn tool_names(&self) -> Vec<String>

Every tool the model can call, in registry order — what the CLI banner lists.

Source

pub fn context_reading(&self, used: Option<u64>) -> Reading

The context budget this agent trims to (0 = no budget set).

An explicit provider.context_budget_tokens wins, because a person who wrote a number The context bar, as this agent’s loop reads it: the model’s window as the denominator, with the compaction threshold as the tripwire when both numbers are known.

One place, because three surfaces draw it (#264). The dashboard used to divide by the compaction rail — the only number the stats event carried — so ctx 12.3K/279K claimed a percentage of something the model had never been told, and the rail’s own share of the window was drawn nowhere. used is the prompt the turn actually sent; None before the first turn, which is not the same as zero.

Source

pub fn reasoning_report(&self) -> InForce

What the next request will ask for, in the one wording every surface uses (#264).

From the dial and the route’s own profile — never from [provider] reasoning_effort, which stops being the answer the moment /reasoning runs.

Source

pub fn context_budget(&self) -> usize

The context budget the loop will use for the next request: provider.context_budget_tokens when a person wrote a number, else [context] compact_at of the model’s window — advertised by the endpoint, else window_tokens, else nothing. A window nobody stated is never guessed at: a request is not shortened on a fiction.

Source

pub fn context_budget_is_configured(&self) -> bool

True when a number was written in provider.context_budget_tokens, which wins over anything a window implies — a person who wrote a rail meant that rail.

Source

pub fn context_window(&self) -> usize

The model’s window as this process understands it: what the endpoint advertised, else what [context] window_tokens says, else 0 = unknown.

Source

pub fn tool_spec_tokens(&self) -> usize

Estimated tokens the tool definitions cost in every request. The loop charges this to the budget before it plans the windows, and eclipse context prints it, so the two numbers cannot drift apart.

Source

pub fn set_advertised_window(&self, tokens: usize)

Record what the endpoint says it can hold. Called by whoever probes it — startup, and again after a model switch — so a rail derived from a window follows the model.

Source

pub async fn probe_advertised_window( &self, cfg: &Config, timeout: Duration, ) -> usize

Ask the endpoint what this model can hold, once, and keep the answer.

Best effort and bounded, so a front end can call it at startup without a server holding the door open: a server that does not answer leaves the window unknown, and a window nobody stated is never guessed at. Nothing is asked when the answer cannot change anything — an explicit provider.context_budget_tokens or a [context] window_tokens already say what the rail is. Returns Self::context_budget afterwards.

Without this a process has no window, so compact_at has nothing to take a share of and a long conversation is never compacted — which is why both front ends call it before their first prompt rather than only the one that prints a meter.

Source

pub fn with_plugins(self, loaded: Plugins) -> Self

Record the plugin set this agent was built with (used by from_config_with_env and by tests).

Source

pub fn with_lock_wait(self, wait: Duration) -> Self

How long a run waits for another process holding the same session. 0 = fail on the first refusal.

Source

pub fn with_context_budget(self, tokens: usize) -> Self

Bound each request to roughly this many estimated tokens (0 = no limit); see crate::context.

Source

pub fn with_context_policy( self, compact_at: f64, protect_last_n: usize, window_tokens: usize, handoff_chars: usize, ) -> Self

[context]: the share of the model’s window at which a request is compacted, the turns kept verbatim at the tail, and a window to assume when nobody advertises one.

Source

pub fn handoff_budget(&self) -> usize

The character budget for a compiled handoff: [context] handoff_chars, but never more than a quarter of the request’s own rail. A handoff that competes with the protected tail for the same window is a second context problem rather than a fix for the first.

Source

pub fn compress_now(&self)

Compact this session from now on, whatever the budget says: every request keeps the first turn and the newest protect_last_n turns verbatim and replaces everything between them with the compiled handoff. The transcript on disk is untouched, so /compress can never lose a message — it changes what is sent, and the handoff’s [#N] rows still point at the rows of the transcript they stand in for.

It is process-wide by design: the thing a person wants when they type /compress is a smaller session from here on, not one shrunken request followed by a full one again.

Source

pub fn with_judgement(self, on: bool, timeout: Duration) -> Self

Ask one model one bounded question about the dropped turns, and let its answer into the handoff when it survives the validator. On by default: this pass is compaction’s model half — the document is compiled deterministically, and this is the part that explains why the work went the way it did. Turn it off for a run that must spend nothing.

Source

pub fn with_approval_judge(self, on: bool) -> Self

#340: let the aux route decide ask-policy calls — allow, deny, or escalate to the person. Never on unless the config says [cli] approval = "smart".

Source

pub fn approval_judge(&self) -> bool

Whether this agent is in smart approval mode. Read by the stats row, so a mode that skips cards cannot be on without saying so.

Source

pub fn with_autotitle(self, on: bool) -> Self

Let sessions be named: the derived name on the turn’s own path, and at most one small call to replace it. Called by Agent::from_config_with_env from [sessions] autotitle; an agent built by hand is left off, because the tests that build one are asserting on the exact requests their provider was given.

Source

pub fn with_provider_config(self, cfg: ProviderConfig) -> Self

Remember the provider configuration, so a model chosen at runtime can become a provider again. Called by Agent::from_config_with_env; an agent built any other way has no configuration to rebuild from and says so if asked to switch model.

Source

pub fn with_routes(self, routes: Vec<AgentRoute>, source: ChainSource) -> Self

Use a chain of routes. The first is the route this agent’s model, /model and models listing refer to; with Fallback or Pinned a Router is built over the chain for each run. Called by Agent::from_config_with_env.

Source

pub fn selected_config(&self) -> Option<&ProviderConfig>

The settings of the selected route: [provider] unless a pin or a chain says otherwise.

Source

pub async fn advertised_context_window( &self, timeout: Duration, ) -> Option<usize>

What the selected route says the model that will answer next can hold. None when it says nothing usable, which is not an error: the caller keeps whatever budget it had. Asked after a model switch, because the window belongs to the model, not to the process.

Source

pub fn chain_source(&self) -> ChainSource

Where the route chain came from.

Source

pub fn route_infos(&self) -> Vec<RouteInfo>

The routes a run will try, in order, with the model each serves. A single entry named default when no chain is configured; empty for an agent built around a bare provider.

Source

pub fn with_turn_results(self, turn_results: Arc<TurnResults>) -> Self

Share the per-turn tool-result buffer with the [MemoryTool] in this agent’s registry.

Source

pub fn with_aux_provider(self, aux: Arc<dyn ChatProvider>) -> Self

Send the agent’s own auxiliary requests (the trimmed-turn summary) to a different provider. The agent does the rest of the work with the main one.

Source

pub fn with_aux_route(self, route: AgentRoute) -> Self

Send auxiliary work to the route [provider] aux names. The route’s own settings (timeout, retries) govern the request: a dead aux route spends its own max_retries, and the summary then falls back to the plain trim note. It has no router and no chain, because a summary is not worth walking one.

Source

pub fn roles(&self) -> Vec<RoleRoute>

Which route each role uses: crate::router::role_table over what this agent holds.

Source

pub fn with_sight( self, vision: VisionConfig, sight: Option<(AgentRoute, Describe)>, ) -> Self

Record the route [provider] delegate names, for the role table. The delegate tool is what uses it; this only lets the readouts say so. [vision], and the provider that describes a picture when the turn’s model cannot see it (#346). Called by Agent::from_config_with_env from the config; an agent built by hand keeps auto with no route, which refuses an attach rather than sending bytes anywhere.

The route arrives with the crate::vision::Describe the planner reads, so “is it on this machine” is answered by whoever resolved the route and never re-guessed here (#356).

Source

pub fn with_delegate_route(self, name: Option<String>) -> Self

Source

pub fn with_model_cell(self, cell: Arc<Mutex<Option<String>>>) -> Self

Share the cell --model / /model writes with whoever else needs to see it. The delegate tool reads the same cell, built before the agent exists.

Source

pub fn aux_provider(&self) -> &Arc<dyn ChatProvider> ⓘ

Source

pub fn model(&self) -> Option<String>

The model this agent will use next: the one chosen at runtime, else the one the selected route is configured with.

Source

pub fn set_route(&self, name: Option<&str>) -> Result<()>

Choose the route the next runs start from, by name. None goes back to the first.

The model chosen for the previous route is cleared with it: a model is a name one endpoint serves, and carrying it to another endpoint is how a run fails with a 404 halfway through. The name is checked here, where the person is, so a typo does not wait for a turn to fail.

Source

pub async fn list_models_for(&self, route: Option<&str>) -> Result<Vec<String>>

What the endpoint behind route says it serves, or the selected one when None. This is the provider step of /model: choosing where to look comes before choosing what.

Source

pub fn set_model(&self, model: Option<String>) -> Result<()>

Use model from the next run on, leaving the configuration file alone. None clears the choice and goes back to whatever the configuration says.

The provider is built here rather than at the start of the run so that a model the server cannot actually be asked for fails now, where the person is, instead of in the middle of a turn. It does not touch a run already in flight: that one keeps the provider it started with.

Source

pub async fn list_models(&self) -> Result<Vec<String>>

What the configured server says it serves. Empty when it answers with nothing usable; an error when it cannot be reached, because “no models” and “wrong address” are different problems and deserve different words.

Source

pub fn system_prompt(&self) -> &str

The context files gathered for this agent (AGENT.md, USER.md, MEMORY.md) and the skills index, in injection order, with what was truncated or dropped. The assembled system prompt this agent sends: the configured prompt, the context files, the plugin fragments, the skills index, and a bot’s own instructions when it is one (#509). Read by the Bots tab’s prompt view and by the tests that hold the overlay to it.

Source

pub fn context(&self) -> &Context

Source

pub fn with_context(self, ctx: Context) -> Self

Source

pub fn from_config(cfg: &Config) -> Result<Self>

Source

pub fn from_config_with_env(cfg: &Config, env: EnvFn<'_>) -> Result<Self>

Build the whole agent from config: the provider (with its wire profile), the tool registry (built-ins plus any enabled plugin tools), the plugin hooks, the system prompt (with any plugin prompt fragments) and the session store for this profile.

Source

pub fn from_config_reporting( cfg: &Config, env: EnvFn<'_>, reporting: Reporting, ) -> Result<Self>

Agent::from_config_with_env, with the loop hooks of [hooks] reporting where reporting says rather than on stderr for every run. The one hook set built here goes to the agent and to every subagent it starts.

Source

pub fn for_bot(cfg: &Config, env: EnvFn<'_>, name: &str) -> Result<Self>

#509: the agent one bot’s conversation runs on.

The same config, the same provider, the same store, the same loop — a bot is an identity, not a second runtime. Three things differ, and only these three: the instructions named by [bots.<name>].instructions are added to the assembled system prompt (never a replacement — the run is still the CLI/web agent with the bot’s words in front of it), the memory tool and the MEMORY.md layer point at the bot’s own file, and skills narrows the index and the skill_* tools to the names the bot declared.

A bot’s memory file is [bots.<name>].memory, else <profile>/memory/bots/<name>/ alongside the human’s own MEMORY.md name — never the human’s file, which is the one thing a bot must not be able to write.

Source

pub fn reasoning(&self) -> Shared

The session’s reasoning dial: /reasoning sets it, every request reads it.

Source

pub fn describe_effort(&self, level: Option<&str>) -> String

What a level becomes on the route the next request will use, in words.

Read here rather than worked out by a front end: the policy comes from the profile the provider will actually be built with (which a manifest may replace), and the model may have its own entry in it. A front end that resolved this itself would be a second guess.

Source

pub fn reasoning_control(&self) -> Option<Reasoning>

The reasoning control the next request’s route resolves to, as data: a front end that keeps it can answer for any level without borrowing the agent.

Source

pub fn with_reasoning(self, dial: Shared) -> Self

Use this dial instead of the one Agent::new made. The builder hands in the dial it gave every route, so the fronts and the providers are looking at the same number.

Source

pub fn store(&self) -> &SessionStore

Source

pub fn attachments(&self) -> Result<&Store, String>

#499: the picture store, or a sentence saying why there is none.

Source

pub fn with_attachments(self, store: Option<Store>) -> Self

Where pictures are kept, when this agent keeps them at all.

Source

pub fn loop_tick_begin( &self, root: &Path, state: &mut State, now_ms: i64, ) -> Result<bool>

#173: take a loop tick — or record that it was dropped because the session is busy.

The busy test comes before the run: flock on the session, taken and released at once, which is what Duration::ZERO means. Ok(true) means the caller may run, and the record has not been touched; Ok(false) means the tick was recorded as skipped and saved, so a busy session loses that tick and the next one still fires on schedule.

It lives here, beside the run it guards, because all three fronts tick the same way: the terminal’s interface, the plain REPL and the dashboard’s gateway differ in when they look, never in what a tick is.

Source

pub async fn loop_tick_end( &self, root: &Path, state: &mut State, now_ms: i64, result: Result<Option<String>, String>, ) -> Result<()>

#173: record what a tick’s run did, and ask the --until question when there is one.

The record is saved before the check, so a process that dies inside the check still has a truthful fired count on disk. result carries the turn’s last text on success (what the check reads) and the reason on failure.

Source

pub async fn goal_after_turn( &self, session: &str, reply: &str, ) -> Result<Option<Goal>>

#172: judge a finished turn against the session’s standing goal, and record it.

One aux call per judged turn, made here so every front judges the same way. The rules are the ones in crate::goals: “done” is checked against the goal’s gate before it is accepted, a gate that fails turns it back into “continue”, and a judge that answers something else counts as continue once and stops the goal the second time.

The reply is redacted before it leaves, and the goal’s own sentence is the only other thing the judge sees — no transcript.

Nothing happens when the session has no goal, or the goal is paused or finished: a goal is a row, and a session without one costs one read.

Source

pub fn goal_continuation(&self, session: &str) -> Result<Option<String>>

#172: the prompt the next turn should carry, when the session’s goal owes one.

A goal owes a turn when it is active and under its budget. The front that owns the session submits it through its own run entry, exactly like a typed prompt — which is why pausing or clearing the goal stops further turns immediately: both are a row this call reads.

Source

pub async fn until_reached( &self, condition: &str, last_reply: Option<&str>, ) -> Result<Verdict, String>

#172: ask one model one yes/no question about the reply a loop tick just produced.

It goes to the aux route, on the same provider and the same timeout the judgement pass uses — a check that spends the main model’s context to answer “yes” is not a check. The reply is redacted first, on the same rule as the digest: a tool result that happened to contain a key does not leave this machine because a loop asked a question.

Three answers, not two: crate::loops::Verdict::Unreadable is what a model that explains itself gets, and the caller keeps looping rather than treating it as a no.

Source

pub async fn run( &self, session_id: Option<&str>, prompt: &str, approver: &dyn Approver, on_event: &(dyn Fn(AgentEvent) + Send + Sync), ) -> Result<RunResult>

Run one user prompt to completion, continuing session_id if it exists (or creating it under that id), otherwise starting a new session. Not cancellable; see run_cancellable.

Source

pub async fn run_with( &self, session_id: Option<&str>, prompt: &str, approver: &dyn Approver, on_event: &(dyn Fn(AgentEvent) + Send + Sync), opts: &RunOptions, ) -> Result<RunResult>

run with per-run options: today that is the iteration budget, so one prompt can be given more or fewer turns than the agent’s default without rebuilding the agent or editing the config.

Source

pub async fn run_typed<T: DeserializeOwned>( &self, session_id: Option<&str>, prompt: &str, schema: Value, approver: &dyn Approver, on_event: &(dyn Fn(AgentEvent) + Send + Sync), opts: &RunOptions, ) -> Result<Typed<T>>

Run one prompt whose reply must parse into T, against a JSON Schema sent as response_format. The schema is the caller’s promise to the model; T is the caller’s promise to itself, and the two are checked separately on purpose — the schema shapes the request, the parse judges the answer, so a backend that ignores response_format still gets you either a value or an error that says why not.

One retry, with the parse error as the feedback. Not two: a schema that argues is a schema that gets negotiated down.

Source

pub async fn run_cancellable( &self, session_id: Option<&str>, prompt: &str, approver: &dyn Approver, on_event: &(dyn Fn(AgentEvent) + Send + Sync), cancel: &Cancel, ) -> Result<RunResult>

run with a cancellation signal. The flag is checked before the run starts, before every provider request, before every tool call and between iterations; when it is set the run stops and returns Error::Cancelled.

Cancelling is cooperative: a request or tool already in flight is dropped, not finished, and nothing is written for it. The user message stays in the session, so a tool call that was interrupted is answered by the dangling-call repair on the next run.

Runs on the same session are serialised twice: by an in-process mutex, and by an exclusive lock on <id>.lock that also excludes other processes (the CLI and the dashboard sharing a state directory). The second one waits up to LOCK_WAIT.

Source

pub async fn run_cancellable_with( &self, session_id: Option<&str>, prompt: &str, approver: &dyn Approver, on_event: &(dyn Fn(AgentEvent) + Send + Sync), cancel: &Cancel, opts: &RunOptions, ) -> Result<RunResult>

run_cancellable with per-run options.

Source

pub async fn run_checked( &self, session_id: Option<&str>, prompt: &str, approver: &dyn Approver, on_event: &(dyn Fn(AgentEvent) + Send + Sync), cancel: &Cancel, opts: &RunOptions, validate: Option<&Validator>, ) -> Result<RunResult>

The run, with an optional parse check for the reply. Every other entry point is this one plus a decision: an ordinary run passes no check, run_typed passes a Deserialize, and eclipse run --schema passes “is this JSON” — so there is exactly one loop.

Auto Trait Implementations§

§

impl !Freeze for Agent

§

impl !RefUnwindSafe for Agent

§

impl !UnwindSafe for Agent

§

impl Forget for Agent

§

impl Move for Agent

§

impl Send for Agent
where Arc<dyn ChatProvider>: Send, RawVecInner: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, Arc<Mutex<Option<String>>>: Send, Arc<Dial>: Send, Atomic<bool>: Send, Mutex<Option<Arc<RecordingProvider>>>: Send, Arc<ToolRegistry>: Send, Arc<Mutex<Option<Db>>>: Send, Atomic<usize>: Send, BoxRaw<Value>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send, NodeRef<Owned, String, ModelReasoningDef, LeafOrInternal>: Send, BoxRaw<(String, ModelReasoningDef)>: Send, NodeRef<Owned, String, LimitDef, LeafOrInternal>: Send, BoxRaw<(String, LimitDef)>: Send, NodeRef<Owned, String, Policy, LeafOrInternal>: Send, BoxRaw<(String, Policy)>: Send, Arc<Mutex<BTreeMap<String, Result<(Arc<Server>, Vec<RemoteTool>), String>>>>: Send, Arc<LoopHooks>: Send, Arc<TurnResults>: Send, Mutex<HashMap<String, Arc<Mutex<()>>>>: Send,

§

impl Sync for Agent
where Arc<dyn ChatProvider>: Sync, RawVecInner: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, Arc<Mutex<Option<String>>>: Sync, Arc<Dial>: Sync, Atomic<bool>: Sync, Mutex<Option<Arc<RecordingProvider>>>: Sync, Arc<ToolRegistry>: Sync, Arc<Mutex<Option<Db>>>: Sync, Atomic<usize>: Sync, BoxRaw<Value>: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, NodeRef<Owned, String, ModelReasoningDef, LeafOrInternal>: Sync, BoxRaw<(String, ModelReasoningDef)>: Sync, NodeRef<Owned, String, LimitDef, LeafOrInternal>: Sync, BoxRaw<(String, LimitDef)>: Sync, NodeRef<Owned, String, Policy, LeafOrInternal>: Sync, BoxRaw<(String, Policy)>: Sync, Arc<Mutex<BTreeMap<String, Result<(Arc<Server>, Vec<RemoteTool>), String>>>>: Sync, Arc<LoopHooks>: Sync, Arc<TurnResults>: Sync, Mutex<HashMap<String, Arc<Mutex<()>>>>: Sync,

§

impl Unpin for Agent

§

impl UnsafeUnpin for Agent
where *const ArcInner<dyn ChatProvider> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ChatProvider>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, PhantomData<Value>: UnsafeUnpin, *const LeafNode<String, Value> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, Value)>>: UnsafeUnpin, PhantomData<RouteConfig>: UnsafeUnpin, PhantomData<AgentRoute>: UnsafeUnpin, *const ArcInner<Mutex<Option<String>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<String>>>>: UnsafeUnpin, *const ArcInner<Dial> is !null: UnsafeUnpin, PhantomData<ArcInner<Dial>>: UnsafeUnpin, Align1<u8>: UnsafeUnpin, PhantomData<RecordedRequest>: UnsafeUnpin, Align4<u32>: UnsafeUnpin, *const ArcInner<RecordingProvider> is !null: UnsafeUnpin, PhantomData<ArcInner<RecordingProvider>>: UnsafeUnpin, *const ArcInner<ToolRegistry> is !null: UnsafeUnpin, PhantomData<ArcInner<ToolRegistry>>: UnsafeUnpin, *const ArcInner<Mutex<Option<Db>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<Db>>>>: UnsafeUnpin, Align8<usize>: UnsafeUnpin, PhantomData<Plugin>: UnsafeUnpin, PhantomData<Spec>: UnsafeUnpin, *const LeafNode<String, String> is !null: UnsafeUnpin, PhantomData<Box<(String, String)>>: UnsafeUnpin, *const ArcInner<Mutex<BTreeMap<String, Result<(Arc<Server>, Vec<RemoteTool>), String>>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<BTreeMap<String, Result<(Arc<Server>, Vec<RemoteTool>), String>>>>>: UnsafeUnpin, *const ArcInner<LoopHooks> is !null: UnsafeUnpin, PhantomData<ArcInner<LoopHooks>>: UnsafeUnpin, PhantomData<Layer>: UnsafeUnpin, *const ArcInner<TurnResults> is !null: UnsafeUnpin, PhantomData<ArcInner<TurnResults>>: UnsafeUnpin, PhantomData<(String, Arc<Mutex<()>>)>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more