pub struct JobsService { /* private fields */ }Expand description
The jobs, folded from the journal: what views and agents read.
Implementations§
Source§impl JobsService
impl JobsService
Sourcepub fn now(&self) -> f64
pub fn now(&self) -> f64
Now, by the plugin’s clock (the motion clock by default:
egui_pop_core::motion, frozen in tests).
pub fn job(&self, id: &str) -> Option<Job>
pub fn children(&self, id: &str) -> Vec<Job>
pub fn summary(&self) -> Summary
Sourcepub fn idle(&self) -> bool
pub fn idle(&self) -> bool
Whether no job that something still owns goes on; orphaned jobs
are not waited on (Jobs::idle).
Sourcepub fn orphans(&self) -> Vec<Job>
pub fn orphans(&self) -> Vec<Job>
The orphaned jobs still going on (Jobs::orphans).
Sourcepub fn log_from(&self, id: &str, from: u64) -> Vec<String>
pub fn log_from(&self, id: &str, from: u64) -> Vec<String>
A job’s log from line from on, as far as it is kept.
Sourcepub fn dismiss(&self, id: &str) -> bool
pub fn dismiss(&self, id: &str) -> bool
Forgets a finished job and its finished children; a child still
going on becomes a top-level job. A late event for a job forgotten
is dropped (Jobs::dismiss).
Sourcepub fn clear_finished(&self)
pub fn clear_finished(&self)
Forgets every finished job.
Sourcepub fn expanded(&self, id: &str) -> bool
pub fn expanded(&self, id: &str) -> bool
Whether a job’s log console is open (remembered per job, shared by every view of it).
pub fn set_expanded(&self, id: &str, open: bool)
Sourcepub fn sources(&self) -> Vec<RowSource>
pub fn sources(&self) -> Vec<RowSource>
The application’s row sources, in the order they were declared
(pop.jobs.rows).
Sourcepub fn filter(&self) -> RowFilter
pub fn filter(&self) -> RowFilter
What the list shows: the sources hidden and the states shown.
pub fn set_filter(&self, filter: RowFilter)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for JobsService
impl !RefUnwindSafe for JobsService
impl Send for JobsService
impl Sync for JobsService
impl Unpin for JobsService
impl UnsafeUnpin for JobsService
impl !UnwindSafe for JobsService
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more