Struct linera_execution::ResourceTracker 
source · pub struct ResourceTracker {
    pub blocks: u32,
    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,
}Expand description
The resources used so far by an execution process.
Fields§
§blocks: u32The number of blocks created.
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.
Trait Implementations§
source§impl AsMut<ResourceTracker> for ResourceTracker
 
impl AsMut<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 RefUnwindSafe for ResourceTracker
impl Send for ResourceTracker
impl Sync for ResourceTracker
impl Unpin for ResourceTracker
impl UnwindSafe for ResourceTracker
Blanket Implementations§
§impl<T> ArchivePointee for T
 
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
 
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
    _: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
 
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
 
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
    &self,
    deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
 
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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>
§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> Upcastable for T
 
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
 
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
 
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
 
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn