Struct soroban_env_guest::xdr::StateArchivalSettings
pub struct StateArchivalSettings {
pub max_entry_ttl: u32,
pub min_temporary_ttl: u32,
pub min_persistent_ttl: u32,
pub persistent_rent_rate_denominator: i64,
pub temp_rent_rate_denominator: i64,
pub max_entries_to_archive: u32,
pub bucket_list_size_window_sample_size: u32,
pub bucket_list_window_sample_period: u32,
pub eviction_scan_size: u32,
pub starting_eviction_scan_level: u32,
}
Expand description
StateArchivalSettings is an XDR Struct defines as:
struct StateArchivalSettings {
uint32 maxEntryTTL;
uint32 minTemporaryTTL;
uint32 minPersistentTTL;
// rent_fee = wfee_rate_average / rent_rate_denominator_for_type
int64 persistentRentRateDenominator;
int64 tempRentRateDenominator;
// max number of entries that emit archival meta in a single ledger
uint32 maxEntriesToArchive;
// Number of snapshots to use when calculating average BucketList size
uint32 bucketListSizeWindowSampleSize;
// How often to sample the BucketList size for the average, in ledgers
uint32 bucketListWindowSamplePeriod;
// Maximum number of bytes that we scan for eviction per ledger
uint32 evictionScanSize;
// Lowest BucketList level to be scanned to evict entries
uint32 startingEvictionScanLevel;
};
Fields§
§max_entry_ttl: u32
§min_temporary_ttl: u32
§min_persistent_ttl: u32
§persistent_rent_rate_denominator: i64
§temp_rent_rate_denominator: i64
§max_entries_to_archive: u32
§bucket_list_size_window_sample_size: u32
§bucket_list_window_sample_period: u32
§eviction_scan_size: u32
§starting_eviction_scan_level: u32
Trait Implementations§
§impl<'arbitrary> Arbitrary<'arbitrary> for StateArchivalSettings
impl<'arbitrary> Arbitrary<'arbitrary> for StateArchivalSettings
§fn arbitrary(
u: &mut Unstructured<'arbitrary>
) -> Result<StateArchivalSettings, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary> ) -> Result<StateArchivalSettings, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<StateArchivalSettings, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<StateArchivalSettings, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more§impl Clone for StateArchivalSettings
impl Clone for StateArchivalSettings
§fn clone(&self) -> StateArchivalSettings
fn clone(&self) -> StateArchivalSettings
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 more§impl Debug for StateArchivalSettings
impl Debug for StateArchivalSettings
§impl Hash for StateArchivalSettings
impl Hash for StateArchivalSettings
§impl Ord for StateArchivalSettings
impl Ord for StateArchivalSettings
§fn cmp(&self, other: &StateArchivalSettings) -> Ordering
fn cmp(&self, other: &StateArchivalSettings) -> 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
§impl PartialEq for StateArchivalSettings
impl PartialEq for StateArchivalSettings
§fn eq(&self, other: &StateArchivalSettings) -> bool
fn eq(&self, other: &StateArchivalSettings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for StateArchivalSettings
impl PartialOrd for StateArchivalSettings
§fn partial_cmp(&self, other: &StateArchivalSettings) -> Option<Ordering>
fn partial_cmp(&self, other: &StateArchivalSettings) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl ReadXdr for StateArchivalSettings
impl ReadXdr for StateArchivalSettings
§fn read_xdr<R>(r: &mut Limited<R>) -> Result<StateArchivalSettings, Error>where
R: Read,
fn read_xdr<R>(r: &mut Limited<R>) -> Result<StateArchivalSettings, Error>where
R: Read,
Read the XDR and construct the type. Read more
§fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Read the XDR and construct the type, and consider it an error if the
read does not completely consume the read implementation. Read more
§fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR and construct the type. Read more
§fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR into the existing value, and consider it an error if the
read does not completely consume the read implementation. Read more
§fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type. Read more
§impl WriteXdr for StateArchivalSettings
impl WriteXdr for StateArchivalSettings
impl Eq for StateArchivalSettings
impl StructuralPartialEq for StateArchivalSettings
Auto Trait Implementations§
impl RefUnwindSafe for StateArchivalSettings
impl Send for StateArchivalSettings
impl Sync for StateArchivalSettings
impl Unpin for StateArchivalSettings
impl UnwindSafe for StateArchivalSettings
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