pub struct ApplyReport {
pub apply_id: String,
pub trigger: ApplyTrigger,
pub outcome: ApplyOutcome,
pub targets: Vec<TargetResult>,
pub warnings: Vec<CoreError>,
pub imported: Vec<String>,
pub recorded: bool,
}Expand description
The result of an apply run.
Fields§
§apply_id: String§trigger: ApplyTrigger§outcome: ApplyOutcome§targets: Vec<TargetResult>§warnings: Vec<CoreError>§imported: Vec<String>Store servers changed by import resolutions.
recorded: boolWhether the run was recorded in the store (applied.toml and the
Surjection-Apply trailer).
Implementations§
Source§impl ApplyReport
impl ApplyReport
Sourcepub fn unresolved(&self) -> usize
pub fn unresolved(&self) -> usize
Entries that need a decision that was not given.
Sourcepub fn status(&self) -> ApplyStatus
pub fn status(&self) -> ApplyStatus
What the run left for the user, most severe first (SPEC 14 exit codes 1, 4, 5 and 7; the CLI maps it to its exit code, the app to its notice).
Sourcepub fn project_status(&self, id: &str) -> ApplyStatus
pub fn project_status(&self, id: &str) -> ApplyStatus
Self::status over project id’s own targets: what trusting that
project left, whatever another project still waits for. The instant
apply after a trust covers the whole machine (#10).
Trait Implementations§
Source§impl Clone for ApplyReport
impl Clone for ApplyReport
Auto Trait Implementations§
impl Forget for ApplyReport
impl Freeze for ApplyReportwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TargetResult>: Freeze,
PhantomData<CoreError>: Freeze,
PhantomData<String>: Freeze,
impl Move for ApplyReport
impl RefUnwindSafe for ApplyReport
impl Send for ApplyReport
impl Sync for ApplyReportwhere
RawVecInner: Sync,
impl Unpin for ApplyReport
impl UnsafeUnpin for ApplyReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TargetResult>: UnsafeUnpin,
PhantomData<CoreError>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ApplyReport
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