pub struct CompileChecker { /* private fields */ }Expand description
Compiles or type-checks a workspace, and reports whether it built.
Built by probe, which identifies the tool first. See the
module documentation for why that is not optional.
Implementations§
Source§impl CompileChecker
impl CompileChecker
Sourcepub async fn probe(
sandbox: &dyn Sandbox,
config: CompileConfig,
) -> Result<Self, ProbeError>
pub async fn probe( sandbox: &dyn Sandbox, config: CompileConfig, ) -> Result<Self, ProbeError>
Identify the tool, then build a checker bound to that version.
§Errors
ProbeError if the tool could not be run or would not say what it is.
There is deliberately no fallback to an unidentified checker.
Sourcepub fn declaring(config: CompileConfig, tool: impl Into<String>) -> Self
pub fn declaring(config: CompileConfig, tool: impl Into<String>) -> Self
Build a checker for a tool whose version is already known.
For a replayed run (US-1006) and for a test, where the tool identity comes from the recording rather than from running anything. Using it with a version the tool does not actually have produces evidence that says something false, so it is for reconstruction, not convenience.
Trait Implementations§
Source§impl Clone for CompileChecker
impl Clone for CompileChecker
Auto Trait Implementations§
impl Freeze for CompileChecker
impl RefUnwindSafe for CompileChecker
impl Send for CompileChecker
impl Sync for CompileChecker
impl Unpin for CompileChecker
impl UnsafeUnpin for CompileChecker
impl UnwindSafe for CompileChecker
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