pub struct ResourceTracker {Show 13 fields
pub blocks: u32,
pub executed_block_size: u64,
pub fuel: u64,
pub read_operations: u32,
pub write_operations: u32,
pub bytes_read: u64,
pub bytes_written: u64,
pub bytes_stored: i32,
pub operations: u32,
pub operation_bytes: u64,
pub messages: u32,
pub message_bytes: u64,
pub grants: Amount,
}Expand description
The resources used so far by an execution process.
Fields§
§blocks: u32The number of blocks created.
executed_block_size: u64The total size of the executed block so far.
fuel: u64The fuel used so far.
read_operations: u32The number of read operations.
write_operations: u32The number of write operations.
bytes_read: u64The number of bytes read.
bytes_written: u64The number of bytes written.
bytes_stored: i32The change in the number of bytes being stored by user applications.
operations: u32The number of operations executed.
operation_bytes: u64The total size of the arguments of user operations.
messages: u32The number of outgoing messages created (system and user).
message_bytes: u64The total size of the arguments of outgoing user messages.
grants: AmountThe amount allocated to message grants.
Trait Implementations§
Source§impl AsMut<ResourceTracker> for ResourceTracker
impl AsMut<ResourceTracker> for ResourceTracker
Source§impl AsRef<ResourceTracker> for ResourceTracker
impl AsRef<ResourceTracker> for ResourceTracker
Source§impl Clone for ResourceTracker
impl Clone for ResourceTracker
Source§fn clone(&self) -> ResourceTracker
fn clone(&self) -> ResourceTracker
Returns a copy 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 moreSource§impl Debug for ResourceTracker
impl Debug for ResourceTracker
Source§impl Default for ResourceTracker
impl Default for ResourceTracker
Source§fn default() -> ResourceTracker
fn default() -> ResourceTracker
Returns the “default value” for a type. Read more
impl Copy for ResourceTracker
Auto Trait Implementations§
impl Freeze for ResourceTracker
impl RefUnwindSafe for ResourceTracker
impl Send for ResourceTracker
impl Sync for ResourceTracker
impl Unpin for ResourceTracker
impl UnwindSafe for ResourceTracker
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§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 moreSource§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
Source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length bytes from memory from the provided location.
Source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes to memory at the provided location.