pub trait Marks: MaybeSend + 'static {
// Required method
fn marks(&self, request: MarksRequest, reply: Reply<MarksPage>);
}Expand description
Host source of marks. Attach with Chart::set_mark_source.
Called on the UI thread; return promptly and answer through the reply from any thread, runtime or browser task. Each answer replaces the previous source marks. Manually supplied markers and events remain independent. The chart ignores answers for an older view.
Required Methods§
Sourcefn marks(&self, request: MarksRequest, reply: Reply<MarksPage>)
fn marks(&self, request: MarksRequest, reply: Reply<MarksPage>)
All marks for the inclusive UTC range, including visible whitespace. Called again after
the symbol, interval or range changes, or Chart::reload_marks is requested.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".