pub struct PackGate { /* private fields */ }Expand description
A pack-declared deterministic gate adapted to the first-class
crate::gate::Gate interface, registered into the final gate’s shared
pipeline AFTER the engine floor gates. The outcome is captured at
construction (see the module docs for the async/sync bridge); the gate
is boolean-only — it reports no confidence score.
Implementations§
Source§impl PackGate
impl PackGate
Sourcepub fn from_run(name: &str, command: &str, ok: bool, output: String) -> Self
pub fn from_run(name: &str, command: &str, ok: bool, output: String) -> Self
Build the gate from its command’s already-completed bounded run:
ok/output are the engine shell runner’s result for command.
The artefact mirrors crate::merge_gate::MergeSuiteGate: the
command line is the reference, and a failure carries the output tail.
Sourcepub fn with_rule_ids(self, rule_ids: Vec<String>) -> Self
pub fn with_rule_ids(self, rule_ids: Vec<String>) -> Self
Attach the stable Flight Rules ids whose checker is this gate. The
command verdict remains untouched; this is only the structured D-H
evidence join carried onto gate.result.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PackGate
impl RefUnwindSafe for PackGate
impl Send for PackGate
impl Sync for PackGate
impl Unpin for PackGate
impl UnsafeUnpin for PackGate
impl UnwindSafe for PackGate
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