Skip to main content

Request

Enum Request 

Source
pub enum Request {
Show 19 variants PreparationStatus, Prepare(Submission), Foreground { version: u32, project_dir: PathBuf, args: Vec<String>, }, Capabilities, SubmitAttributed { submission: Submission, requirements: Vec<RequirementAttribution>, }, AttributedAssurance { id: String, }, ProofEvents { id: String, cursor: Cursor, limit: usize, }, Explain { id: String, target: Target, function: String, obligation: Option<String>, }, SaveBaseline { id: String, name: String, }, Baselines, GetBaseline { name: String, }, Compare { before: Reference, after: String, }, Submit { submission: Submission, }, List { project_dir: Option<PathBuf>, }, Status { id: String, }, Result { id: String, }, Cancel { id: String, superseded: bool, }, Logs { id: String, offset: u64, }, Events { id: String, offset: u64, },
}
Expand description

One local RPC.

Variants§

§

PreparationStatus

Negotiate and inspect optional daemon-owned preparation.

§

Prepare(Submission)

Enqueue optional work; never changes the original verification result.

§

Foreground

Hold foreground priority until this connection closes.

Fields

§version: u32

Preparation protocol version.

§project_dir: PathBuf

Originating working directory.

§args: Vec<String>

Arguments used to resolve the workspace scheduling key.

§

Capabilities

Fail-closed negotiation before any non-stock submission.

§

SubmitAttributed

Legacy attributed submission; services since 0.3 refuse this operation.

Fields

§submission: Submission

Requested stock or standalone verification.

§requirements: Vec<RequirementAttribution>

Canonical, non-empty submitter attributions.

§

AttributedAssurance

Legacy assurance read; services since 0.3 refuse this operation.

Fields

§id: String

Exact durable job identity.

§

ProofEvents

Read bounded version-one proof observations using a resumable cursor.

Fields

§id: String

Durable job identity.

§cursor: Cursor

Last consumed event; stream identity must match on reconnect.

§limit: usize

Maximum event count, clamped by the service.

§

Explain

Explain an exact reported target/function, preserving raw evidence.

Fields

§id: String

Durable completed job identity.

§target: Target

Complete Cargo target identity.

§function: String

Exact crate-qualified function.

§obligation: Option<String>

Optional exact obligation id.

§

SaveBaseline

Save independent immutable proof evidence outside job retention.

Fields

§id: String

Completed evidence source.

§name: String

Immutable owner-selected name.

§

Baselines

List retained immutable named baselines.

§

GetBaseline

Read immutable evidence for its recorded revision, never current inputs.

Fields

§name: String

Exact retained baseline name.

§

Compare

Compare explicit completed evidence with an earlier job or baseline.

Fields

§before: Reference

Earlier named baseline or durable job.

§after: String

Later completed job identity.

§

Submit

Submit or coalesce an identical in-flight request.

Fields

§submission: Submission

Requested verification.

§

List

List retained jobs, optionally for one canonical project directory.

Fields

§project_dir: Option<PathBuf>

Project filter.

§

Status

Inspect one job without waiting for verification.

Fields

§id: String

Job id.

§

Result

Read one completed or in-progress result.

Fields

§id: String

Job id.

§

Cancel

Cancel one job and its entire process group.

Fields

§id: String

Job id.

§superseded: bool

New edits supersede this run.

§

Logs

Read bounded stderr diagnostics from a byte offset.

Fields

§id: String

Job id.

§offset: u64

Byte offset.

§

Events

Read bounded JSON-lines target events from a byte offset.

Fields

§id: String

Job id.

§offset: u64

Byte offset.

Trait Implementations§

Source§

impl Clone for Request

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 Request

Source§

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

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

impl<'de> Deserialize<'de> for Request

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 Serialize for Request

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

Auto Trait Implementations§

§

impl Forget for Request

§

impl Freeze for Request

§

impl Move for Request

§

impl RefUnwindSafe for Request

§

impl Send for Request
where RawVecInner: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send,

§

impl Sync for Request
where RawVecInner: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync,

§

impl Unpin for Request
where *const u8 is !null: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin,

§

impl UnsafeUnpin for Request

§

impl UnwindSafe for Request
where RawVecInner: UnwindSafe, BTreeMap<String, String>: UnwindSafe,

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> 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, 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> Same for T

Source§

type Output = T

Should always be Self
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.