pub struct InvocationResourceLimits {
pub instructions: i64,
pub mem_bytes: i64,
pub disk_read_entries: u32,
pub write_entries: u32,
pub ledger_entries: u32,
pub disk_read_bytes: u32,
pub write_bytes: u32,
pub contract_events_size_bytes: u32,
pub max_contract_data_key_size_bytes: u32,
pub max_contract_data_entry_size_bytes: u32,
pub max_contract_code_entry_size_bytes: u32,
}Expand description
Resource limits that should be enforced during testing.
These should correspond to the respective network transaction-level limits.
Fields§
§instructions: i64Maximum Number of modelled CPU instructions.
mem_bytes: i64Maximum size of modelled memory in bytes.
disk_read_entries: u32Maximum number of entries that need to be read from disk.
This accounts for the total number of restored Soroban ledger entries and non-Soroban entries (such as ‘classic’ account balances).
write_entries: u32Maximum number of entries that need to be written to the ledger due to modification.
ledger_entries: u32Maximum number total ledger entries read and written (total size of the transaction footprint).
This is a sum of disk read entries, memory read entries and write entries.
disk_read_bytes: u32Maximum amount of bytes a transaction is allowed to read from disk.
write_bytes: u32Maximum total number of bytes that need to be written to the ledger.
contract_events_size_bytes: u32Maximum total size of the contract events emitted.
max_contract_data_key_size_bytes: u32Maximum size of a contract data key in bytes.
max_contract_data_entry_size_bytes: u32Maximum size of a contract data entry value in bytes.
max_contract_code_entry_size_bytes: u32Maximum size of a contract code entry in bytes.
Trait Implementations§
Source§impl Clone for InvocationResourceLimits
impl Clone for InvocationResourceLimits
Source§fn clone(&self) -> InvocationResourceLimits
fn clone(&self) -> InvocationResourceLimits
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InvocationResourceLimits
impl Debug for InvocationResourceLimits
Source§impl PartialEq for InvocationResourceLimits
impl PartialEq for InvocationResourceLimits
impl Eq for InvocationResourceLimits
impl StructuralPartialEq for InvocationResourceLimits
Auto Trait Implementations§
impl Freeze for InvocationResourceLimits
impl RefUnwindSafe for InvocationResourceLimits
impl Send for InvocationResourceLimits
impl Sync for InvocationResourceLimits
impl Unpin for InvocationResourceLimits
impl UnwindSafe for InvocationResourceLimits
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<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W), ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>
Source§impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X), ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more