pub struct CargoInputProbePolicy<'a> {
pub deadline: Option<Instant>,
pub cleanup: CleanupPolicy,
pub cancelled: &'a mut (dyn FnMut() -> bool + Send),
}Expand description
Caller-owned controls for Cargo identity, compiler identity and metadata probes.
Each probe runs in an owned process group using Host’s existing communication and cleanup machinery. Output limits remain fixed by IC Build. These controls do not impose a deadline on filesystem discovery or hashing, execute a build, or alter fingerprints. Existing resolution APIs retain their unbounded defaults.
Fields§
§deadline: Option<Instant>Absolute deadline shared by every probe, including subsequent revalidation.
Spawning syscalls and cleanup can exceed it; None imposes no deadline.
cleanup: CleanupPolicyTermination grace and reaping policy, separate from the probe deadline.
cancelled: &'a mut (dyn FnMut() -> bool + Send)Cancellation predicate, polled even while a probe is silent. It must return promptly; callback panics attempt cleanup before unwinding.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CargoInputProbePolicy<'a>
impl<'a> !Sync for CargoInputProbePolicy<'a>
impl<'a> !UnwindSafe for CargoInputProbePolicy<'a>
impl<'a> Freeze for CargoInputProbePolicy<'a>
impl<'a> Send for CargoInputProbePolicy<'a>
impl<'a> Unpin for CargoInputProbePolicy<'a>
impl<'a> UnsafeUnpin for CargoInputProbePolicy<'a>
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