pub struct SimulatorServer { /* private fields */ }Expand description
Manages all simulators as a unified server
Implementations§
Source§impl SimulatorServer
impl SimulatorServer
Sourcepub fn new(config: SimulatorConfig) -> Self
pub fn new(config: SimulatorConfig) -> Self
Create a new simulator server with the given configuration
Sourcepub async fn start(config: SimulatorConfig) -> SimulatorResult<Self>
pub async fn start(config: SimulatorConfig) -> SimulatorResult<Self>
Start all configured simulators
Sourcepub async fn wait_for_ready(&self, timeout: Duration) -> SimulatorResult<()>
pub async fn wait_for_ready(&self, timeout: Duration) -> SimulatorResult<()>
Wait for all simulators to be ready
Sourcepub fn core_banking(&self) -> Option<&Arc<CoreBankingSimulator>>
pub fn core_banking(&self) -> Option<&Arc<CoreBankingSimulator>>
Get the Core Banking simulator
Sourcepub fn mapping_service(&self) -> Option<&Arc<MappingServiceSimulator>>
pub fn mapping_service(&self) -> Option<&Arc<MappingServiceSimulator>>
Get the Mapping Service simulator
Sourcepub fn rulepack_service(&self) -> Option<&Arc<RulepackServiceSimulator>>
pub fn rulepack_service(&self) -> Option<&Arc<RulepackServiceSimulator>>
Get the Rulepack Service simulator
Sourcepub fn regulator_endpoint(&self) -> Option<&Arc<RegulatorEndpointSimulator>>
pub fn regulator_endpoint(&self) -> Option<&Arc<RegulatorEndpointSimulator>>
Get the Regulator Endpoint simulator
Sourcepub fn uptime_secs(&self) -> u64
pub fn uptime_secs(&self) -> u64
Get uptime in seconds
Sourcepub async fn combined_stats(&self) -> HashMap<String, SimulatorStats>
pub async fn combined_stats(&self) -> HashMap<String, SimulatorStats>
Get combined statistics from all simulators
Sourcepub async fn reset_all_stats(&self)
pub async fn reset_all_stats(&self)
Reset all statistics
Sourcepub fn endpoints(&self) -> SimulatorEndpoints
pub fn endpoints(&self) -> SimulatorEndpoints
Get endpoint URLs for all simulators
Auto Trait Implementations§
impl Freeze for SimulatorServer
impl !RefUnwindSafe for SimulatorServer
impl Send for SimulatorServer
impl Sync for SimulatorServer
impl Unpin for SimulatorServer
impl UnsafeUnpin for SimulatorServer
impl !UnwindSafe for SimulatorServer
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