pub struct PredicateTool { /* private fields */ }Expand description
Typed, shell-free client for one CQ-SAT/GCC executable.
Implementations§
Source§impl PredicateTool
impl PredicateTool
Sourcepub fn discover(
executable: impl Into<PathBuf>,
) -> Result<Self, PredicateApiError>
pub fn discover( executable: impl Into<PathBuf>, ) -> Result<Self, PredicateApiError>
Discover and validate the executable’s predicate CLI contract.
Sourcepub fn discover_with_policy(
executable: impl Into<PathBuf>,
policy: ExecutionPolicy,
) -> Result<Self, PredicateApiError>
pub fn discover_with_policy( executable: impl Into<PathBuf>, policy: ExecutionPolicy, ) -> Result<Self, PredicateApiError>
Discover with explicit runtime bounds for discovery and later jobs.
pub fn discover_observed( executable: impl Into<PathBuf>, policy: ExecutionPolicy, ) -> Result<Observed<Self>, PredicateOperationError>
pub fn executable(&self) -> &Path
pub fn capabilities(&self) -> &PredicateCapabilities
pub fn execution_policy(&self) -> ExecutionPolicy
Sourcepub fn with_execution_policy(self, policy: ExecutionPolicy) -> Self
pub fn with_execution_policy(self, policy: ExecutionPolicy) -> Self
Return a handle with different validated bounds and unchanged capabilities.
Sourcepub fn certify(
&self,
version: CertificateVersion,
model: &Path,
bad_output: usize,
transcript: &Path,
certificate: &Path,
) -> Result<PredicateResult, PredicateApiError>
pub fn certify( &self, version: CertificateVersion, model: &Path, bad_output: usize, transcript: &Path, certificate: &Path, ) -> Result<PredicateResult, PredicateApiError>
Produce a deterministic certificate without overwriting certificate.
pub fn certify_observed( &self, version: CertificateVersion, model: &Path, bad_output: usize, transcript: &Path, certificate: &Path, ) -> Result<Observed<PredicateResult>, PredicateOperationError>
Sourcepub fn verify(
&self,
version: CertificateVersion,
model: &Path,
certificate: &Path,
) -> Result<PredicateResult, PredicateApiError>
pub fn verify( &self, version: CertificateVersion, model: &Path, certificate: &Path, ) -> Result<PredicateResult, PredicateApiError>
Verify a certificate against the selected model and return its result.
pub fn verify_observed( &self, version: CertificateVersion, model: &Path, certificate: &Path, ) -> Result<Observed<PredicateResult>, PredicateOperationError>
Trait Implementations§
Source§impl Clone for PredicateTool
impl Clone for PredicateTool
Source§fn clone(&self) -> PredicateTool
fn clone(&self) -> PredicateTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PredicateTool
impl RefUnwindSafe for PredicateTool
impl Send for PredicateTool
impl Sync for PredicateTool
impl Unpin for PredicateTool
impl UnsafeUnpin for PredicateTool
impl UnwindSafe for PredicateTool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more