pub struct KabuConfig {
pub remote_node: Option<RemoteNodeConfig>,
pub signers: Vec<SignerConfig>,
pub builders: Vec<BuilderConfig>,
pub multicaller_address: Address,
pub influxdb: Option<InfluxDbConfig>,
pub webserver: Option<WebserverConfig>,
pub database: Option<DatabaseConfig>,
}Expand description
Main Kabu configuration
Fields§
§remote_node: Option<RemoteNodeConfig>Optional remote node configuration (for remote mode)
signers: Vec<SignerConfig>Multiple signers for redundancy and balance management
builders: Vec<BuilderConfig>MEV builders/relays for transaction submission
multicaller_address: AddressMulticaller contract address
influxdb: Option<InfluxDbConfig>Optional InfluxDB configuration
webserver: Option<WebserverConfig>Optional web server configuration
database: Option<DatabaseConfig>Optional database configuration
Implementations§
Source§impl KabuConfig
impl KabuConfig
Sourcepub fn load_from_file(file_name: String) -> Result<KabuConfig>
pub fn load_from_file(file_name: String) -> Result<KabuConfig>
Load configuration from file (sync version)
Sourcepub async fn load_from_file_async(file_name: String) -> Result<KabuConfig>
pub async fn load_from_file_async(file_name: String) -> Result<KabuConfig>
Load configuration from file (async version)
Trait Implementations§
Source§impl Clone for KabuConfig
impl Clone for KabuConfig
Source§fn clone(&self) -> KabuConfig
fn clone(&self) -> KabuConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConfigLoader for KabuConfig
impl ConfigLoader for KabuConfig
type SectionType = KabuConfig
fn load_from_file<'async_trait>(
file_name: String,
) -> Pin<Box<dyn Future<Output = Result<Self::SectionType, LoadConfigError>> + Send + 'async_trait>>where
Self: 'async_trait,
Source§impl ConfigLoaderSync for KabuConfig
impl ConfigLoaderSync for KabuConfig
type SectionType = KabuConfig
fn load_from_file_sync( file_name: String, ) -> Result<Self::SectionType, LoadConfigError>
Source§impl Debug for KabuConfig
impl Debug for KabuConfig
Source§impl<'de> Deserialize<'de> for KabuConfig
impl<'de> Deserialize<'de> for KabuConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KabuConfig
impl RefUnwindSafe for KabuConfig
impl Send for KabuConfig
impl Sync for KabuConfig
impl Unpin for KabuConfig
impl UnwindSafe for KabuConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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: 272 bytes