pub struct DashboardState { /* private fields */ }Expand description
Live-State des Dashboards. Mutex-geschuetzt, der Server liest und Konsumenten schreiben.
Implementations§
Source§impl DashboardState
impl DashboardState
Sourcepub fn set_topics(&self, topics: Vec<TopicInfo>)
pub fn set_topics(&self, topics: Vec<TopicInfo>)
Setzt die komplette Topic-Liste (ueberschreibt).
Sourcepub fn set_participants(&self, ps: Vec<ParticipantInfo>)
pub fn set_participants(&self, ps: Vec<ParticipantInfo>)
Setzt die Participant-Liste.
Sourcepub fn set_histograms(&self, hs: Vec<HistogramSnapshot>)
pub fn set_histograms(&self, hs: Vec<HistogramSnapshot>)
Setzt die Histogramme.
Sourcepub fn set_edges(&self, e: Vec<DiscoveryEdge>)
pub fn set_edges(&self, e: Vec<DiscoveryEdge>)
Setzt die Discovery-Edges.
Sourcepub fn set_recording(&self, r: RecordingStatus)
pub fn set_recording(&self, r: RecordingStatus)
Setzt den Recording-Status.
Sourcepub fn inject_topics_json(&self, body: &str) -> Result<usize, String>
pub fn inject_topics_json(&self, body: &str) -> Result<usize, String>
Phase-B: Inject ueber JSON-Body (POST /api/inject/topics). Erwartet das gleiche Schema wie die GET-Antwort.
Sourcepub fn inject_participants_json(&self, body: &str) -> Result<usize, String>
pub fn inject_participants_json(&self, body: &str) -> Result<usize, String>
Phase-B: Inject von Participants.
Sourcepub fn inject_histograms_json(&self, body: &str) -> Result<usize, String>
pub fn inject_histograms_json(&self, body: &str) -> Result<usize, String>
Phase-B: Inject von Histograms.
Sourcepub fn topics_json(&self) -> String
pub fn topics_json(&self) -> String
Liest topics-JSON.
Sourcepub fn participants_json(&self) -> String
pub fn participants_json(&self) -> String
Liest participants-JSON.
Sourcepub fn histograms_json(&self) -> String
pub fn histograms_json(&self) -> String
Liest histograms-JSON.
Sourcepub fn graph_json(&self) -> String
pub fn graph_json(&self) -> String
Liest discovery-graph-JSON.
Sourcepub fn recording_json(&self) -> String
pub fn recording_json(&self) -> String
Liest recording-JSON.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DashboardState
impl RefUnwindSafe for DashboardState
impl Send for DashboardState
impl Sync for DashboardState
impl Unpin for DashboardState
impl UnsafeUnpin for DashboardState
impl UnwindSafe for DashboardState
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