#[non_exhaustive]pub enum NetworkConfig {
Existing {
rpc_url: String,
runtime_manifest: PathBuf,
},
Local(LocalNetworkConfig),
Offline {
accounts: usize,
},
}Expand description
Which network a scenario runs against, and how to reach it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Existing
An already-running network reached over its public JSON-RPC URL.
Fields
Local(LocalNetworkConfig)
A local node the harness launches and owns.
Offline
No live network: agents run with locally-derived accounts and no chain.
Useful for exercising agent coordination, timing, and messaging logic
without a node. Chain verbs return crate::TestkitError::Offline.
Implementations§
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnsafeUnpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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