pub struct PlotConfig {
pub multi_lane: bool,
pub min_length: Option<Duration>,
pub remove: Option<HashSet<String>>,
pub inline_field: bool,
pub color_top_blocking: String,
pub color_top_threadpool: String,
pub color_bottom: String,
}
Expand description
Common visualization options.
Fields§
§multi_lane: bool
Don’t overlay bottom spans.
min_length: Option<Duration>
Remove spans shorter than this.
remove: Option<HashSet<String>>
Remove spans with this name.
inline_field: bool
If the is only one field, display its value inline.
Since the text is not limited to its box, text can overlap and become unreadable.
color_top_blocking: String
The color for the plots in the active region, when running on the main thread. Default: semi-transparent orange
color_top_threadpool: String
The color for the plots in the active region, when the work offloaded from the main thread (with
tokio::task::spawn_blocking
. Default: semi-transparent green
color_bottom: String
The color for the plots in the total region. Default: semi-transparent blue
Trait Implementations§
Source§impl Clone for PlotConfig
impl Clone for PlotConfig
Source§fn clone(&self) -> PlotConfig
fn clone(&self) -> PlotConfig
Returns a copy 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 PlotConfig
impl Debug for PlotConfig
Auto Trait Implementations§
impl Freeze for PlotConfig
impl RefUnwindSafe for PlotConfig
impl Send for PlotConfig
impl Sync for PlotConfig
impl Unpin for PlotConfig
impl UnwindSafe for PlotConfig
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> 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