pub struct ThresholdsPanel {
pub editing: Option<String>,
pub error: Option<String>,
pub creating: bool,
pub thresholds: HashMap<String, ThresholdDef>,
pub events_filter: Option<String>,
/* private fields */
}Fields§
§editing: Option<String>§error: Option<String>§creating: bool§thresholds: HashMap<String, ThresholdDef>§events_filter: Option<String>Implementations§
Source§impl ThresholdsPanel
impl ThresholdsPanel
pub fn save_threshold_events_csv( &self, path: &Path, ) -> Result<(), Box<dyn Error>>
pub fn clear_all_events(&mut self)
Trait Implementations§
Source§impl Clone for ThresholdsPanel
impl Clone for ThresholdsPanel
Source§impl Debug for ThresholdsPanel
impl Debug for ThresholdsPanel
Source§impl Default for ThresholdsPanel
impl Default for ThresholdsPanel
Source§impl Panel for ThresholdsPanel
impl Panel for ThresholdsPanel
fn state(&self) -> &PanelState
fn state_mut(&mut self) -> &mut PanelState
Source§fn hotkey_name(&self) -> Option<HotkeyName>
fn hotkey_name(&self) -> Option<HotkeyName>
Return the
HotkeyName associated with this panel, if any. Read moreRender the panel’s top-bar menu button. Read more
Source§fn clear_all(&mut self)
fn clear_all(&mut self)
Clear all internal runtime state / events / buffers specific to the panel.
Default: no-op. Panels with internal collections override this.
fn draw( &mut self, plot_ui: &mut PlotUi<'_>, scope: &ScopeData, traces: &TracesCollection, )
Source§fn legend_entries(
&self,
scope: &ScopeData,
traces: &TracesCollection,
out: &mut Vec<LegendEntryData>,
)
fn legend_entries( &self, scope: &ScopeData, traces: &TracesCollection, out: &mut Vec<LegendEntryData>, )
fn update_data(&mut self, data: &mut LivePlotData<'_>)
fn render_panel(&mut self, ui: &mut Ui, data: &mut LivePlotData<'_>)
Source§fn settings_snapshot(&self, _data: &LivePlotData<'_>) -> Option<String>
fn settings_snapshot(&self, _data: &LivePlotData<'_>) -> Option<String>
Returns a lightweight serialized snapshot of this panel’s settings
for undo change detection. Returns
None for panels with no
serializable settings (e.g. export panel, hotkeys panel). Read morefn title(&self) -> &'static str
Source§fn icon_only(&self) -> Option<&'static str>
fn icon_only(&self) -> Option<&'static str>
Icon only: returns Optional icon glyph that can be used in compact UI tabs.
Source§fn title_and_icon(&self) -> String
fn title_and_icon(&self) -> String
Title combined with optional icon (e.g., “⌨️ Hotkeys”). Returns an owned String so callers
can use it directly in
ui.button, ui.label, etc.fn show_detached_dialog(&mut self, ctx: &Context, data: &mut LivePlotData<'_>)
Auto Trait Implementations§
impl Freeze for ThresholdsPanel
impl RefUnwindSafe for ThresholdsPanel
impl Send for ThresholdsPanel
impl Sync for ThresholdsPanel
impl Unpin for ThresholdsPanel
impl UnsafeUnpin for ThresholdsPanel
impl UnwindSafe for ThresholdsPanel
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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