pub struct AveConfig {Show 13 fields
pub keypair_algorithm: KeyPairAlgorithm,
pub hash_algorithm: HashAlgorithm,
pub internal_db: AveInternalDBConfig,
pub external_db: AveExternalDBConfig,
pub network: Config,
pub contracts_path: PathBuf,
pub always_accept: bool,
pub safe_mode: bool,
pub tracking_size: usize,
pub is_service: bool,
pub only_clear_events: bool,
pub sync: SyncConfig,
pub spec: Option<MachineSpec>,
}Expand description
Node configuration.
Fields§
§keypair_algorithm: KeyPairAlgorithmKey derivator.
hash_algorithm: HashAlgorithmDigest derivator.
internal_db: AveInternalDBConfigDatabase configuration.
external_db: AveExternalDBConfigExternal database configuration.
network: ConfigNetwork configuration.
contracts_path: PathBufContract dir.
always_accept: boolApproval mode.
safe_mode: boolSafe mode disables mutating operations while allowing queries.
tracking_size: usizeTracking lru cache size
is_service: boolIs a service node
only_clear_events: boolReject tracker opaque events and only commit clear tracker events.
sync: SyncConfigSync protocol configuration.
spec: Option<MachineSpec>Wasmtime execution environment sizing.
None machine spec → auto-detect RAM and CPU from the host.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Config
impl Serialize for Config
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 more