Skip to main content

Call

Struct Call 

Source
pub struct Call {
Show 14 fields pub tool: String, pub subject: Option<String>, pub arguments: Option<Output>, pub outcome: Outcome, pub at: Seq, pub output: Option<Output>, pub called: TimeMs, pub answered: Option<TimeMs>, pub timing: Timing, pub effect: Option<Effect>, pub render: Option<RenderIntent>, pub exit_code: Option<i64>, pub took_us: Option<u64>, pub landing: Option<Landing>,
}
Expand description

One tool call inside a turn.

Fields§

§tool: String

The tool’s own name, as the Ledger records it.

§subject: Option<String>

What it acted on, when the arguments name one thing. A display reading rather than a field: the arguments are free JSON and this picks the one a person recognises the call by.

§arguments: Option<Output>

What it was called with, bounded exactly the way Output is and cut off at the same limit.

A person judging a call needs what went in, not only what came back: “the tool failed” and “the tool was asked for the wrong path” are read from different halves of the same row. subject stays one display reading of these rather than a replacement for them. None when the recorded call carried no arguments this build can read as text; the whole of them is in the Ledger at at, which is where the cut lines went too.

§outcome: Outcome§at: Seq

Where in the Ledger the bytes are. The row shows a shape; this is how somebody reads the rest.

§output: Option<Output>

What it said, bounded. None when the call has not answered, or when the result carried nothing this build can read as text.

§called: TimeMs

When the Ledger wrote the call, read from that record the way Turn::t is, so a replayed session keeps its original times.

§answered: Option<TimeMs>

When the Ledger wrote the result paired with this call. None exactly when outcome is Outcome::Waiting: the two are set by one pairing, and an answer outside the window is not guessed.

§timing: Timing

Whether answered - called is how long the call took. One value for both times: two records a build writes are both measured or both not, and the one exception - an answer the city supplied after a restart - makes the span unmeasured either way.

§effect: Option<Effect>

What boundary the tool was registered as crossing when it was called, as its tool_called line recorded it. None for a tool the bench did not know, and for a line written before the key existed.

§render: Option<RenderIntent>

How the tool was registered to be drawn, from the same line: a terminal, a diff, or the generic row. None in the same cases; a page draws such a call as generic. A diff’s locations are the registration’s and empty today - the file is Call::subject.

§exit_code: Option<i64>

The code the command of an exec call ended with, as its paired result recorded it. None for every other tool, for a command a signal stopped or the city never waited on - which have no code - and for a call not yet answered: no code is drawn rather than an invented one.

§took_us: Option<u64>

Whole microseconds the call took, as its paired tool_result.took_us recorded it (kernel D20). None for a call not yet answered and for a line written before the key existed: a page then shows answered - called in milliseconds (crates/wire/spec/Reading.lean D28).

§landing: Option<Landing>

Where the letter a send call sent landed, paired by SignalId from the signal_landed its delivery wrote under the sending run (crates/wire/spec/Reading.lean D42, kernel D38). None for every other tool, for a call whose letter is not yet delivered, and for a Ledger written before the line existed: a page then draws what the tool itself answered.

Trait Implementations§

Source§

impl Clone for Call

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 Debug for Call

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Call

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Call

Source§

impl PartialEq for Call

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Call

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Call

Auto Trait Implementations§

§

impl Freeze for Call

§

impl RefUnwindSafe for Call

§

impl Send for Call

§

impl Sync for Call

§

impl Unpin for Call

§

impl UnsafeUnpin for Call

§

impl UnwindSafe for Call

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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