pub struct MonitorModel { /* private fields */ }Implementations§
Source§impl MonitorModel
impl MonitorModel
pub fn from_metadata(metadata: &CuMonitoringMetadata) -> Self
pub fn from_parts( components: &'static [MonitorComponentMetadata], copperlist_info: CopperListInfo, topology: MonitorTopology, ) -> Self
pub fn components(&self) -> &'static [MonitorComponentMetadata]
pub fn topology(&self) -> &MonitorTopology
pub fn component_count(&self) -> usize
pub fn set_copperlist_info(&self, info: CopperListInfo)
pub fn last_seen_copperlist_id(&self) -> Option<u64>
pub fn record_component_latency( &self, component_id: ComponentId, duration: CuDuration, )
pub fn record_end_to_end_latency(&self, duration: CuDuration)
pub fn reset_latency(&self)
pub fn set_component_status( &self, component_id: ComponentId, status_txt: impl ToCompactString, )
pub fn set_component_error( &self, component_id: ComponentId, error_txt: impl ToCompactString, )
pub fn clear_component_error(&self, component_id: ComponentId)
pub fn observe_copperlist_io(&self, stats: CopperListIoStats)
pub fn update_copperlist_rate(&self, clid: u64)
pub fn upsert_pool_stat( &self, id: impl ToCompactString, space_left: usize, total_size: usize, buffer_size: usize, )
pub fn refresh_pool_stats_from_runtime(&self)
pub fn process_copperlist(&self, copperlist_id: u64, view: CopperListView<'_>)
Trait Implementations§
Source§impl Clone for MonitorModel
impl Clone for MonitorModel
Source§fn clone(&self) -> MonitorModel
fn clone(&self) -> MonitorModel
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 moreAuto Trait Implementations§
impl Freeze for MonitorModel
impl RefUnwindSafe for MonitorModel
impl Send for MonitorModel
impl Sync for MonitorModel
impl Unpin for MonitorModel
impl UnsafeUnpin for MonitorModel
impl UnwindSafe for MonitorModel
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