pub struct MicroControlObserver { /* private fields */ }Expand description
Наблюдатель за микро-контролем
Implementations§
Source§impl MicroControlObserver
impl MicroControlObserver
Sourcepub fn new(telemetry: TelemetryQueue) -> Self
pub fn new(telemetry: TelemetryQueue) -> Self
Создать нового наблюдателя с очередью телеметрии
Sourcepub fn with_sender(telemetry_tx: Sender<Telemetry>) -> Self
pub fn with_sender(telemetry_tx: Sender<Telemetry>) -> Self
Создать нового наблюдателя с отправителем телеметрии
Sourcepub fn observe_start(&self, component: &str) -> OperationGuard
pub fn observe_start(&self, component: &str) -> OperationGuard
Наблюдать за началом операции
Sourcepub fn observe_start_with_params(
&self,
component: &str,
port: PortId,
_parameter: &ParameterId,
) -> OperationGuard
pub fn observe_start_with_params( &self, component: &str, port: PortId, _parameter: &ParameterId, ) -> OperationGuard
Наблюдать за началом операции с параметрами
Sourcepub fn record_violation(
&self,
component: &str,
expected_ns: u64,
actual_ns: u64,
value: Option<f32>,
)
pub fn record_violation( &self, component: &str, expected_ns: u64, actual_ns: u64, value: Option<f32>, )
Зафиксировать нарушение
Sourcepub fn component_stats(&self, component: &str) -> Option<ComponentStats>
pub fn component_stats(&self, component: &str) -> Option<ComponentStats>
Получить статистику по компоненту
Sourcepub fn violations(&self) -> Vec<Violation>
pub fn violations(&self) -> Vec<Violation>
Получить все нарушения
Sourcepub fn sandbox_summary(&self) -> SandboxSummary
pub fn sandbox_summary(&self) -> SandboxSummary
Получить сводку по песочнице
Trait Implementations§
Source§impl Clone for MicroControlObserver
impl Clone for MicroControlObserver
Source§fn clone(&self) -> MicroControlObserver
fn clone(&self) -> MicroControlObserver
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 MicroControlObserver
impl !RefUnwindSafe for MicroControlObserver
impl Send for MicroControlObserver
impl Sync for MicroControlObserver
impl Unpin for MicroControlObserver
impl UnsafeUnpin for MicroControlObserver
impl !UnwindSafe for MicroControlObserver
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