pub struct ReservationId(/* private fields */);Available on non-crate feature
ethexe only.Expand description
Reservation identifier.
The identifier is used to reserve and unreserve gas amount for program execution later.
Implementations§
Source§impl ReservationId
impl ReservationId
Sourcepub const fn new(array: [u8; 32]) -> ReservationId
pub const fn new(array: [u8; 32]) -> ReservationId
Creates a new ReservationId from a 32-byte array.
Source§impl ReservationId
impl ReservationId
Source§impl ReservationId
impl ReservationId
Sourcepub fn into_bytes(self) -> [u8; 32]
pub fn into_bytes(self) -> [u8; 32]
Returns ReservationIdas bytes array.
Trait Implementations§
Source§impl<__AsT> AsMut<__AsT> for ReservationId
impl<__AsT> AsMut<__AsT> for ReservationId
Source§fn as_mut(&mut self) -> &mut __AsT
fn as_mut(&mut self) -> &mut __AsT
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<__AsT> AsRef<__AsT> for ReservationId
impl<__AsT> AsRef<__AsT> for ReservationId
Source§impl Clone for ReservationId
impl Clone for ReservationId
Source§fn clone(&self) -> ReservationId
fn clone(&self) -> ReservationId
Returns a duplicate 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 ReservationId
impl Debug for ReservationId
Source§impl Default for ReservationId
impl Default for ReservationId
Source§fn default() -> ReservationId
fn default() -> ReservationId
Returns the “default value” for a type. Read more
Source§impl Display for ReservationId
impl Display for ReservationId
Source§impl From<H256> for ReservationId
impl From<H256> for ReservationId
Source§fn from(h256: H256) -> ReservationId
fn from(h256: H256) -> ReservationId
Converts to this type from the input type.
Source§impl From<u64> for ReservationId
impl From<u64> for ReservationId
Source§fn from(value: u64) -> ReservationId
fn from(value: u64) -> ReservationId
Converts to this type from the input type.
Source§impl FromStr for ReservationId
impl FromStr for ReservationId
Source§type Err = ConversionError
type Err = ConversionError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<ReservationId, <ReservationId as FromStr>::Err>
fn from_str(s: &str) -> Result<ReservationId, <ReservationId as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ReservationId
impl Hash for ReservationId
Source§impl Ord for ReservationId
impl Ord for ReservationId
Source§fn cmp(&self, other: &ReservationId) -> Ordering
fn cmp(&self, other: &ReservationId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReservationId
impl PartialEq for ReservationId
Source§impl PartialOrd for ReservationId
impl PartialOrd for ReservationId
impl Copy for ReservationId
impl Eq for ReservationId
impl Pod for ReservationId
impl StructuralPartialEq for ReservationId
Auto Trait Implementations§
impl Freeze for ReservationId
impl RefUnwindSafe for ReservationId
impl Send for ReservationId
impl Sync for ReservationId
impl Unpin for ReservationId
impl UnwindSafe for ReservationId
Blanket Implementations§
Source§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8]
Source§impl<T, U> AsMutByteSlice<T> for U
impl<T, U> AsMutByteSlice<T> for U
fn as_mut_byte_slice(&mut self) -> &mut [u8]
Source§impl<U> AsMutSliceOf for U
impl<U> AsMutSliceOf for U
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
Source§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)