cu_profiler_core/backend/
banks_client.rs1use crate::Result;
10use crate::backend::{ExecutionBackend, SimulationOutput};
11use crate::error::Error;
12use crate::metadata::BackendKind;
13use crate::scenario::Scenario;
14
15#[derive(Debug, Clone, Default)]
17pub struct BanksClientBackend {
18 pub endpoint: Option<String>,
20}
21
22impl BanksClientBackend {
23 #[must_use]
25 pub fn new(endpoint: Option<String>) -> Self {
26 Self { endpoint }
27 }
28}
29
30impl ExecutionBackend for BanksClientBackend {
31 fn kind(&self) -> BackendKind {
32 BackendKind::BanksClient
33 }
34
35 fn run(&self, _scenario: &Scenario) -> Result<SimulationOutput> {
36 Err(Error::BackendUnimplemented(
37 "banks-client: this core type is an interface stub and is not yet \
38 implemented — use the `cu-profiler-mollusk` integration crate for \
39 real compute-unit metering today"
40 .to_string(),
41 ))
42 }
43}