pub struct Client { /* private fields */ }Expand description
A timeout-bounded local client. Every call receives a complete fresh frame.
Implementations§
Source§impl Client
impl Client
Sourcepub fn validate_literal_witness(
&self,
plan: Plan,
candidate_id: String,
result: &QueryResult,
) -> Result<Validated>
pub fn validate_literal_witness( &self, plan: Plan, candidate_id: String, result: &QueryResult, ) -> Result<Validated>
Independently evaluate a complete scalar model through the source owner.
§Errors
Refuses older services, changed plans, models and invalid counterexamples.
Sourcepub fn literal_witnesses(
&self,
source: &Submission,
max_mutants: usize,
) -> Result<Plan>
pub fn literal_witnesses( &self, source: &Submission, max_mutants: usize, ) -> Result<Plan>
Prepare separate source-admitted scalar literal witness queries. This starts no verification or mutation campaign and has no local fallback.
§Errors
Refuses unavailable or older services, changed input and invalid query links.
Sourcepub fn submit_mutation(&self, submission: Submission) -> Result<View>
pub fn submit_mutation(&self, submission: Submission) -> Result<View>
Submit a bounded owned mutation campaign through the existing job service.
§Errors
Refuses incompatible services, invalid baselines or invalid budgets.
Sourcepub fn mutation(&self, id: &str) -> Result<View>
pub fn mutation(&self, id: &str) -> Result<View>
Reauthenticate an exact durable campaign and all original result links.
§Errors
Missing, changed or incompatible evidence is an explicit error.
Sourcepub fn cancel_mutation(&self, id: &str) -> Result<View>
pub fn cancel_mutation(&self, id: &str) -> Result<View>
Request cancellation of actual campaign jobs; inspect the returned lifecycle.
§Errors
Missing campaigns and service failures remain explicit.
Sourcepub fn requirement_assurance(&self, id: &str) -> Result<View>
pub fn requirement_assurance(&self, id: &str) -> Result<View>
Read source-snapshot requirement assurance after version negotiation.
§Errors
Refuses unsupported services, unknown jobs and invalid stored evidence.
Sourcepub fn submit_contracts(&self, submission: Submission) -> Result<Status>
pub fn submit_contracts(&self, submission: Submission) -> Result<Status>
Submit neutral source only after explicit capability negotiation.
§Errors
Refuses older services, invalid source or transport failures without fallback.
Sourcepub fn new(socket: impl Into<PathBuf>) -> Self
pub fn new(socket: impl Into<PathBuf>) -> Self
A client for socket; no connection or side effect until a call.
Sourcepub fn call(&self, request: &Request) -> Result<Response>
pub fn call(&self, request: &Request) -> Result<Response>
Sends one RPC with five-second I/O deadlines.
§Errors
Returns connection, framing, timeout, or server errors.
Sourcepub fn call_with(
&self,
request: &Request,
connected: impl FnOnce(UnixStream),
) -> Result<Response>
pub fn call_with( &self, request: &Request, connected: impl FnOnce(UnixStream), ) -> Result<Response>
Like Client::call, first handing connected a clone of the
connected stream. Another thread can shut that clone down to abandon
the call; connected is not called when the connection fails.
§Errors
Returns connection, framing, timeout, or server errors.