pub struct RunCommand<A: AppLike> {
    p: Popen,
    comm: Option<Communicator>,
    panel: Panel,
    lines: VecDeque<String>,
    max_capacity: usize,
    started: Instant,
    last_drawn: Instant,
    show_success_popup: bool,
    on_load: Option<Box<dyn FnOnce(&mut EventCtx<'_>, &mut A, bool, Vec<String>) -> Transition<A>>>,
}
Expand description

Executes a command and displays STDOUT and STDERR in a loading screen window. Only works on native, of course.

Fields

p: Popencomm: Option<Communicator>panel: Panellines: VecDeque<String>max_capacity: usizestarted: Instantlast_drawn: Instantshow_success_popup: boolon_load: Option<Box<dyn FnOnce(&mut EventCtx<'_>, &mut A, bool, Vec<String>) -> Transition<A>>>

Implementations

Trait Implementations

Respond to a UI event, such as input or time passing.

Draw

Specifies what to draw before draw()

Before this state is popped or replaced, call this.

Respond to Transition::Recreate by assuming state in the app has changed, but preserving the State-specific state appropriately. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.