pub struct FrameLimits {
pub execution: u64,
pub state: u64,
}Expand description
The independent execution and state gas budgets carried by an EIP-8141 frame.
Fields§
§execution: u64Maximum execution gas available to the frame.
state: u64Maximum state gas available to the frame.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for FrameLimits
impl<'arbitrary> Arbitrary<'arbitrary> for FrameLimits
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<FrameLimits, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<FrameLimits, Error>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>,
) -> Result<FrameLimits, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<FrameLimits, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl BorshDeserialize for FrameLimits
impl BorshDeserialize for FrameLimits
fn deserialize_reader<__R>(reader: &mut __R) -> Result<FrameLimits, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for FrameLimits
impl BorshSerialize for FrameLimits
Source§impl Clone for FrameLimits
impl Clone for FrameLimits
Source§fn clone(&self) -> FrameLimits
fn clone(&self) -> FrameLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameLimits
Source§impl Debug for FrameLimits
impl Debug for FrameLimits
Source§impl Decodable for FrameLimits
impl Decodable for FrameLimits
Source§impl Default for FrameLimits
impl Default for FrameLimits
Source§fn default() -> FrameLimits
fn default() -> FrameLimits
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrameLimits
impl<'de> Deserialize<'de> for FrameLimits
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameLimits, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameLimits, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encodable for FrameLimits
impl Encodable for FrameLimits
impl Eq for FrameLimits
Source§impl Hash for FrameLimits
impl Hash for FrameLimits
Source§impl PartialEq for FrameLimits
impl PartialEq for FrameLimits
Source§impl Serialize for FrameLimits
impl Serialize for FrameLimits
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FrameLimits
Auto Trait Implementations§
impl Freeze for FrameLimits
impl RefUnwindSafe for FrameLimits
impl Send for FrameLimits
impl Sync for FrameLimits
impl Unpin for FrameLimits
impl UnsafeUnpin for FrameLimits
impl UnwindSafe for FrameLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes