pub struct SequenceProvider { /* private fields */ }Expand description
A provider replaying a sequence of snapshots, then repeating the last one.
Implementations§
Trait Implementations§
Source§impl Clone for SequenceProvider
impl Clone for SequenceProvider
Source§impl Debug for SequenceProvider
impl Debug for SequenceProvider
Source§impl Default for SequenceProvider
impl Default for SequenceProvider
Source§impl SnapshotProvider for SequenceProvider
impl SnapshotProvider for SequenceProvider
Source§fn snapshot(&mut self) -> Snapshot
fn snapshot(&mut self) -> Snapshot
Takes a fresh sample (the TUI/serve call this on their refresh cadence; MCP per call).
Source§fn history(&self) -> &History
fn history(&self) -> &History
History ring buffer of samples taken so far (may be empty for one-shot providers).
Source§fn snapshot_now(&mut self) -> Snapshot
fn snapshot_now(&mut self) -> Snapshot
Like
Self::snapshot but samples every source now, ignoring the cadence (the TUI’s second
sample 500 ms after start, so CPU % appears within a second; a refresh right after an action).Source§fn headroom_config(&self) -> HeadroomConfig
fn headroom_config(&self) -> HeadroomConfig
Headroom tunables from config.
Auto Trait Implementations§
impl Forget for SequenceProvider
impl Freeze for SequenceProvider
impl Move for SequenceProvider
impl RefUnwindSafe for SequenceProviderwhere
String: RefUnwindSafe,
impl Send for SequenceProviderwhere
RawVecInner: Send,
&'static str: Send,
String: Send,
NodeRef<Owned, String, SourceStatus, LeafOrInternal>: Send,
BoxRaw<(String, SourceStatus)>: Send,
NodeRef<Owned, String, u32, LeafOrInternal>: Send,
BoxRaw<(String, u32)>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
impl Sync for SequenceProviderwhere
RawVecInner: Sync,
String: Sync,
NodeRef<Owned, String, SourceStatus, LeafOrInternal>: Sync,
BoxRaw<(String, SourceStatus)>: Sync,
NodeRef<Owned, String, u32, LeafOrInternal>: Sync,
BoxRaw<(String, u32)>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
impl Unpin for SequenceProviderwhere
*const u8 is !null: Unpin,
&'static str: Unpin,
String: Unpin,
*const LeafNode<String, SourceStatus> is !null: Unpin,
Box<(String, SourceStatus)>: Unpin,
*const LeafNode<String, u32> is !null: Unpin,
Box<(String, u32)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
impl UnsafeUnpin for SequenceProviderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Snapshot>: UnsafeUnpin,
PhantomData<HistoryPoint>: UnsafeUnpin,
impl UnwindSafe for SequenceProviderwhere
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
BTreeMap<String, SourceStatus>: UnwindSafe,
BTreeMap<String, u32>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
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