Skip to main content

CargoInputProbePolicy

Struct CargoInputProbePolicy 

Source
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: CleanupPolicy

Termination 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§

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> 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, 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.