pub struct InvocationResult {
pub component_id: ComponentId,
pub function_name: &'static str,
pub fuel_consumed: u64,
pub duration_ns: u64,
pub success: bool,
}Expand description
Metadata about a completed invocation, for observability.
§HOT PATH — created after every invocation.
Fields§
§component_id: ComponentIdComponent that was invoked.
function_name: &'static strFunction that was called.
fuel_consumed: u64Fuel consumed by this invocation.
duration_ns: u64Wall-clock duration of the invocation in nanoseconds.
success: boolWhether the invocation succeeded.
Trait Implementations§
Source§impl Clone for InvocationResult
impl Clone for InvocationResult
Source§fn clone(&self) -> InvocationResult
fn clone(&self) -> InvocationResult
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 InvocationResult
impl RefUnwindSafe for InvocationResult
impl Send for InvocationResult
impl Sync for InvocationResult
impl Unpin for InvocationResult
impl UnsafeUnpin for InvocationResult
impl UnwindSafe for InvocationResult
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> 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