pub struct CommonStorageOptions {Show 18 fields
pub storage_max_concurrent_queries: Option<usize>,
pub storage_max_stream_queries: usize,
pub storage_max_cache_size: usize,
pub storage_max_value_entry_size: usize,
pub storage_max_find_keys_entry_size: usize,
pub storage_max_find_key_values_entry_size: usize,
pub storage_max_cache_entries: usize,
pub storage_max_cache_value_size: usize,
pub storage_max_cache_find_keys_size: usize,
pub storage_max_cache_find_key_values_size: usize,
pub blob_cache_size: usize,
pub confirmed_block_cache_size: usize,
pub certificate_cache_size: usize,
pub certificate_raw_cache_size: usize,
pub event_cache_size: usize,
pub block_cache_size: usize,
pub execution_state_cache_size: usize,
pub storage_replication_factor: u32,
}Fields§
§storage_max_concurrent_queries: Option<usize>The maximal number of simultaneous queries to the database
storage_max_stream_queries: usizeThe maximal number of simultaneous stream queries to the database
storage_max_cache_size: usizeThe maximal memory used in the storage cache.
storage_max_value_entry_size: usizeThe maximal size of a value entry in the storage cache.
storage_max_find_keys_entry_size: usizeThe maximal size of a find-keys entry in the storage cache.
storage_max_find_key_values_entry_size: usizeThe maximal size of a find-key-values entry in the storage cache.
storage_max_cache_entries: usizeThe maximal number of entries in the storage cache.
storage_max_cache_value_size: usizeThe maximal memory used in the value cache.
storage_max_cache_find_keys_size: usizeThe maximal memory used in the find_keys_by_prefix cache.
storage_max_cache_find_key_values_size: usizeThe maximal memory used in the find_key_values_by_prefix cache.
blob_cache_size: usizeThe maximal number of entries in the blob cache.
confirmed_block_cache_size: usizeThe maximal number of entries in the confirmed block cache.
certificate_cache_size: usizeThe maximal number of entries in the confirmed block certificate cache.
certificate_raw_cache_size: usizeThe maximal number of entries in the raw certificate cache.
event_cache_size: usizeThe maximal number of entries in the event cache.
block_cache_size: usizeThe number of entries in the block cache.
execution_state_cache_size: usizeThe number of entries in the execution state cache.
storage_replication_factor: u32The replication factor for the keyspace
Implementations§
Source§impl CommonStorageOptions
impl CommonStorageOptions
pub fn storage_cache_sizes(&self) -> StorageCacheSizes
pub fn storage_cache_config(&self) -> ViewsStorageCacheConfig
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Returns options matching the clap-defined defaults.
Trait Implementations§
Source§impl Args for CommonStorageOptions
impl Args for CommonStorageOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CommonStorageOptions
impl Clone for CommonStorageOptions
Source§fn clone(&self) -> CommonStorageOptions
fn clone(&self) -> CommonStorageOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommonStorageOptions
impl Debug for CommonStorageOptions
Source§impl FromArgMatches for CommonStorageOptions
impl FromArgMatches for CommonStorageOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for CommonStorageOptions
impl Parser for CommonStorageOptions
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CommonStorageOptions
impl RefUnwindSafe for CommonStorageOptions
impl Send for CommonStorageOptions
impl Sync for CommonStorageOptions
impl Unpin for CommonStorageOptions
impl UnsafeUnpin for CommonStorageOptions
impl UnwindSafe for CommonStorageOptions
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
Source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length bytes from memory from the provided location.
Source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes to memory at the provided location.