Skip to main content

FakeRunner

Struct FakeRunner 

Source
pub struct FakeRunner { /* private fields */ }

Implementations§

Source§

impl FakeRunner

Source

pub fn new(script_path: &Path, stop: Halt) -> Result<FakeRunner, FakeError>

Trait Implementations§

Source§

impl Debug for FakeRunner

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Runner for FakeRunner

Source§

fn preflight(&mut self, lane: &str) -> Result<Probe, ProbeError>

Check that a lane can run. Makes no model call.
Source§

fn quota(&mut self, lane: &str) -> Option<QuotaReport>

Remaining quota of a lane, when its harness can report it for free.
Source§

fn run( &mut self, lane: &str, job: &Job, _on_spawn: &mut dyn FnMut(i32), on_event: &mut dyn FnMut(HarnessEvent), ) -> Outcome

Run one job to its end. on_spawn receives the process group of a harness process when it starts; on_event each event as it arrives.

Auto Trait Implementations§

§

impl Forget for FakeRunner

§

impl Freeze for FakeRunner
where *const LeafNode<String, PreflightAnswer> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, PreflightAnswer)>>: Freeze, *const LeafNode<String, QuotaReport> is !null: Freeze, PhantomData<Box<(String, QuotaReport)>>: Freeze, *const u8 is !null: Freeze, PhantomData<Step>: Freeze, PhantomData<u8>: Freeze, *const ArcInner<Atomic<bool>> is !null: Freeze, PhantomData<ArcInner<Atomic<bool>>>: Freeze,

§

impl Move for FakeRunner

§

impl RefUnwindSafe for FakeRunner

§

impl Send for FakeRunner
where NodeRef<Owned, String, PreflightAnswer, LeafOrInternal>: Send, BoxRaw<(String, PreflightAnswer)>: Send, NodeRef<Owned, String, QuotaReport, LeafOrInternal>: Send, BoxRaw<(String, QuotaReport)>: Send, RawVecInner: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, Arc<Atomic<bool>>: Send,

§

impl Sync for FakeRunner
where NodeRef<Owned, String, PreflightAnswer, LeafOrInternal>: Sync, BoxRaw<(String, PreflightAnswer)>: Sync, NodeRef<Owned, String, QuotaReport, LeafOrInternal>: Sync, BoxRaw<(String, QuotaReport)>: Sync, RawVecInner: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, Arc<Atomic<bool>>: Sync,

§

impl Unpin for FakeRunner
where *const LeafNode<String, PreflightAnswer> is !null: Unpin, Box<(String, PreflightAnswer)>: Unpin, *const LeafNode<String, QuotaReport> is !null: Unpin, Box<(String, QuotaReport)>: Unpin, *const u8 is !null: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, Arc<Atomic<bool>>: Unpin,

§

impl UnsafeUnpin for FakeRunner
where *const LeafNode<String, PreflightAnswer> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, PreflightAnswer)>>: UnsafeUnpin, *const LeafNode<String, QuotaReport> is !null: UnsafeUnpin, PhantomData<Box<(String, QuotaReport)>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<Step>: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const ArcInner<Atomic<bool>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,

§

impl UnwindSafe for FakeRunner

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