pub struct CommandBuildContextInspector<E> { /* private fields */ }Expand description
Descriptor-confined build-context inspector backed by fleet command execution.
Implementations§
Source§impl<E> CommandBuildContextInspector<E>
impl<E> CommandBuildContextInspector<E>
Sourcepub fn new(executor: Arc<E>, policy: BuildContextPolicy) -> Self
pub fn new(executor: Arc<E>, policy: BuildContextPolicy) -> Self
Creates an inspector from an executor and explicit policy.
Sourcepub const fn policy(&self) -> &BuildContextPolicy
pub const fn policy(&self) -> &BuildContextPolicy
Returns the active build-context policy.
Trait Implementations§
Source§impl<E> BuildContextInspector for CommandBuildContextInspector<E>where
E: CommandExecutor,
impl<E> BuildContextInspector for CommandBuildContextInspector<E>where
E: CommandExecutor,
Source§fn fingerprint<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
deadline: Timestamp,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<BuildContextFingerprint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn fingerprint<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
deadline: Timestamp,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<BuildContextFingerprint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Computes one bounded deterministic context fingerprint.
Auto Trait Implementations§
impl<E> Freeze for CommandBuildContextInspector<E>
impl<E> RefUnwindSafe for CommandBuildContextInspector<E>where
E: RefUnwindSafe,
impl<E> Send for CommandBuildContextInspector<E>
impl<E> Sync for CommandBuildContextInspector<E>
impl<E> Unpin for CommandBuildContextInspector<E>
impl<E> UnsafeUnpin for CommandBuildContextInspector<E>
impl<E> UnwindSafe for CommandBuildContextInspector<E>where
E: RefUnwindSafe,
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