Struct map_gui::tools::RunCommand [−][src]
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>>>, }
Executes a command and displays STDOUT and STDERR in a loading screen window. Only works on native, of course.
Fields
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>>>
Implementations
impl<A: AppLike + 'static> RunCommand<A>
[src]
impl<A: AppLike + 'static> RunCommand<A>
[src]Trait Implementations
impl<A: AppLike + 'static> State<A> for RunCommand<A>
[src]
impl<A: AppLike + 'static> State<A> for RunCommand<A>
[src]fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut A) -> Transition<A>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &A)
[src]
pub fn draw_baselayer(&self) -> DrawBaselayer
pub fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
Auto Trait Implementations
impl<A> !RefUnwindSafe for RunCommand<A>
impl<A> !Send for RunCommand<A>
impl<A> !Sync for RunCommand<A>
impl<A> Unpin for RunCommand<A>
impl<A> !UnwindSafe for RunCommand<A>
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,