pub struct EmitMetric { /* private fields */ }Expand description
Implementations§
Source§impl EmitMetric
impl EmitMetric
pub fn new() -> Self
pub fn total_emitted(&self) -> u64
Trait Implementations§
Source§impl Default for EmitMetric
impl Default for EmitMetric
Source§impl HostFunction for EmitMetric
impl HostFunction for EmitMetric
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description
Source§fn execute(&self, ctx: &mut HostFunctionContext, args: &[u8]) -> HostCallResult
fn execute(&self, ctx: &mut HostFunctionContext, args: &[u8]) -> HostCallResult
Execute the function
Auto Trait Implementations§
impl !Freeze for EmitMetric
impl RefUnwindSafe for EmitMetric
impl Send for EmitMetric
impl Sync for EmitMetric
impl Unpin for EmitMetric
impl UnsafeUnpin for EmitMetric
impl UnwindSafe for EmitMetric
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> 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