pub struct MeteringSample {
pub success: bool,
pub duration_ms: u64,
pub bytes_in: u64,
pub bytes_out: u64,
}Expand description
One invocation’s measured cost, folded into a Metering aggregate.
Fields§
§success: boolWhether the invocation succeeded (the guest produced a response).
duration_ms: u64Wall-clock duration in milliseconds (the server-side CPU-time proxy; true fuel accounting needs the engine to surface post-completion cost).
bytes_in: u64Request bytes delivered to the function.
bytes_out: u64Response bytes the function produced.
Trait Implementations§
Source§impl Clone for MeteringSample
impl Clone for MeteringSample
Source§fn clone(&self) -> MeteringSample
fn clone(&self) -> MeteringSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MeteringSample
Source§impl Debug for MeteringSample
impl Debug for MeteringSample
impl Eq for MeteringSample
Source§impl PartialEq for MeteringSample
impl PartialEq for MeteringSample
impl StructuralPartialEq for MeteringSample
Auto Trait Implementations§
impl Freeze for MeteringSample
impl RefUnwindSafe for MeteringSample
impl Send for MeteringSample
impl Sync for MeteringSample
impl Unpin for MeteringSample
impl UnsafeUnpin for MeteringSample
impl UnwindSafe for MeteringSample
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.