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 const SHOW_THRESHOLDS_LABEL: &'static str = "👁 Show Thresholds"
pub const NEW_LABEL: &'static str = "⊞ New"
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§fn clone(&self) -> ThresholdsPanel
fn clone(&self) -> ThresholdsPanel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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, )
fn update_data(&mut self, data: &mut LivePlotData<'_>)
fn render_panel(&mut self, ui: &mut Ui, data: &mut LivePlotData<'_>)
fn 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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().