Skip to main content

Charter

Struct Charter 

Source
pub struct Charter<'a> {
Show 15 fields pub run: RunId, pub who: &'a str, pub addr: &'a Address, pub task: &'a str, pub goal: &'a str, pub job: &'a Locator, pub parent: Option<RunId>, pub predecessor: Option<RunId>, pub dispatched_by: &'a Who, pub skills: &'a [SkillPin], pub policy: RunPolicy, pub naming: Option<B3Hash>, pub opening: Option<Opening>, pub effort: Option<Effort>, pub agent: Option<&'a AgentRunIdentity>,
}
Expand description

What run_started records about a run, and whom every line of the run is written as.

Fields§

§run: RunId§who: &'a str

The resident the run’s lines are written as.

§addr: &'a Address§task: &'a str§goal: &'a str§job: &'a Locator§parent: Option<RunId>§predecessor: Option<RunId>§dispatched_by: &'a Who§skills: &'a [SkillPin]§policy: RunPolicy

The run policy run_started records (crates/kernel/Spec.lean §8-77).

§naming: Option<B3Hash>

The identity version run_started records (crates/kernel/Spec.lean §8-79).

§opening: Option<Opening>

How the run’s first user message was written, which a fork reads back (crates/kernel/Spec.lean §8-82-1); None for a run the city writes no first message for.

§effort: Option<Effort>

The effort run_started records (crates/kernel/Spec.lean §8-85): the one the run’s requests froze; None when none was stated, and for a run that sends this city no requests.

§agent: Option<&'a AgentRunIdentity>

The ACP agent run_started records for a harness run (crates/kernel/spec/Event/Record.lean §8-87); None for a run this city’s own model loop drives.

Trait Implementations§

Source§

impl<'a> Clone for Charter<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for Charter<'a>

Source§

impl<'a> Debug for Charter<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Charter<'a>

§

impl<'a> RefUnwindSafe for Charter<'a>

§

impl<'a> Send for Charter<'a>

§

impl<'a> Sync for Charter<'a>

§

impl<'a> Unpin for Charter<'a>

§

impl<'a> UnsafeUnpin for Charter<'a>

§

impl<'a> UnwindSafe for Charter<'a>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.