pub struct ReportsTab {
pub state: Fetch<ChartSpec>,
pub kind: ReportKind,
pub chart: String,
}Fields§
§state: Fetch<ChartSpec>§kind: ReportKindWhich report produced the current (or pending) fetch.
chart: StringChart shape used for the last build.
Implementations§
Source§impl ReportsTab
impl ReportsTab
pub fn new() -> Self
Sourcepub fn set_loading(
&mut self,
id: i64,
kind: ReportKind,
chart: impl Into<String>,
)
pub fn set_loading( &mut self, id: i64, kind: ReportKind, chart: impl Into<String>, )
Set loading state once an eval id is assigned.
Sourcepub fn on_reply(&mut self, wire: &str, kind: ReportKind, chart: &str)
pub fn on_reply(&mut self, wire: &str, kind: ReportKind, chart: &str)
Process a routed wire reply and update the fetch state.
Apply a routed reply, parsing it with the kind/chart that produced
the request (carried on the route), not the tab’s current selection —
the two can differ if a newer request was issued before this reply.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReportsTab
impl RefUnwindSafe for ReportsTab
impl Send for ReportsTab
impl Sync for ReportsTab
impl Unpin for ReportsTab
impl UnsafeUnpin for ReportsTab
impl UnwindSafe for ReportsTab
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
§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>
Converts
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>
Converts
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