pub struct SmartModuleChainMetrics { /* private fields */ }
Implementations§
Source§impl SmartModuleChainMetrics
impl SmartModuleChainMetrics
Sourcepub fn new(names: &[String]) -> Self
pub fn new(names: &[String]) -> Self
Create a new instance of SmartModuleChainMetrics with the given names of SmartModules.
pub fn add_bytes_in(&self, value: u64)
pub fn add_invocation_count(&self, value: u64)
pub fn add_records_out(&self, value: u64)
pub fn add_records_err(&self, value: u64)
pub fn add_fuel_used(&self, fuel: u64, cpu_elapsed: Duration)
pub fn bytes_in(&self) -> u64
pub fn records_out(&self) -> u64
pub fn fuel_used(&self) -> u64
pub fn invocation_count(&self) -> u64
pub fn cpu_ms(&self) -> u64
pub fn records_err(&self) -> u64
pub fn smartmodule_names(&self) -> &Vec<String>
pub fn append(&self, other: &SmartModuleChainMetrics)
pub fn reset(&self)
Trait Implementations§
Source§impl Clone for SmartModuleChainMetrics
impl Clone for SmartModuleChainMetrics
Source§impl Debug for SmartModuleChainMetrics
impl Debug for SmartModuleChainMetrics
Source§impl Default for SmartModuleChainMetrics
impl Default for SmartModuleChainMetrics
Source§impl<'de> Deserialize<'de> for SmartModuleChainMetrics
impl<'de> Deserialize<'de> for SmartModuleChainMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for SmartModuleChainMetrics
impl RefUnwindSafe for SmartModuleChainMetrics
impl Send for SmartModuleChainMetrics
impl Sync for SmartModuleChainMetrics
impl Unpin for SmartModuleChainMetrics
impl UnwindSafe for SmartModuleChainMetrics
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moreSource§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