pub struct CustomMetricsHandle { /* private fields */ }Expand description
Cheap, cloneable handle for custom metrics from the Lua bridge.
Wraps Arc<Mutex<CustomMetrics>> to match the Handle pattern
used by BudgetHandle and ProgressHandle.
§Poison policy
Silently skips on poison. Custom metrics are observational — a missed record degrades stats but does not affect execution.
Implementations§
Trait Implementations§
Source§impl Clone for CustomMetricsHandle
impl Clone for CustomMetricsHandle
Source§fn clone(&self) -> CustomMetricsHandle
fn clone(&self) -> CustomMetricsHandle
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 CustomMetricsHandle
impl RefUnwindSafe for CustomMetricsHandle
impl Send for CustomMetricsHandle
impl Sync for CustomMetricsHandle
impl Unpin for CustomMetricsHandle
impl UnsafeUnpin for CustomMetricsHandle
impl UnwindSafe for CustomMetricsHandle
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