pub struct ResourceTracker {Show 20 fields
pub blocks: u32,
pub block_size: u64,
pub fuel: u64,
pub read_operations: u32,
pub write_operations: u32,
pub bytes_read: u64,
pub bytes_written: u64,
pub blobs_read: u32,
pub blobs_published: u32,
pub blob_bytes_read: u64,
pub blob_bytes_published: u64,
pub bytes_stored: i32,
pub operations: u32,
pub operation_bytes: u64,
pub messages: u32,
pub message_bytes: u64,
pub http_requests: u32,
pub service_oracle_queries: u32,
pub service_oracle_execution: Duration,
pub grants: Amount,
}
Expand description
The resources used so far by an execution process.
Fields§
§blocks: u32
The number of blocks created.
block_size: u64
The total size of the block so far.
fuel: u64
The fuel used so far.
read_operations: u32
The number of read operations.
write_operations: u32
The number of write operations.
bytes_read: u64
The number of bytes read.
bytes_written: u64
The number of bytes written.
blobs_read: u32
The number of blobs read.
blobs_published: u32
The number of blobs published.
blob_bytes_read: u64
The number of blob bytes read.
blob_bytes_published: u64
The number of blob bytes published.
bytes_stored: i32
The change in the number of bytes being stored by user applications.
operations: u32
The number of operations executed.
operation_bytes: u64
The total size of the arguments of user operations.
messages: u32
The number of outgoing messages created (system and user).
message_bytes: u64
The total size of the arguments of outgoing user messages.
http_requests: u32
The number of HTTP requests performed.
service_oracle_queries: u32
The number of calls to services as oracles.
service_oracle_execution: Duration
The time spent executing services as oracles.
grants: Amount
The 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
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>
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>
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
.