arsenal-sdk · proxy_client
Declared module signatures, types, configuration, and source documentation.
Source: arsenal/crates/arsenal-sdk/src/proxy_client.rs. SHA-256: 853d49b5c3ae77fd8c4c12fbab3a36a6eacaecc65a611e6de85fd3e4b1577b83.
This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.
proxy_client::ProxyClient
Client-side proxy integration with automatic fingerprint management.
pub struct ProxyClient {
}Source line: 38.
proxy_client::ProxyClient::new
Create a new proxy client.
#[must_use]
pub fn new(broker_client: Arc<BrokerClient>) -> Self;Source line: 50.
proxy_client::ProxyClient::with_persistence
Create a new proxy client with fingerprint persistence.
#[must_use]
pub fn with_persistence(broker_client: Arc<BrokerClient>, path: PathBuf) -> Self;Source line: 60.
proxy_client::ProxyClient::init_fingerprint
Initialize fingerprint state for an agent.
This should be called once when the agent starts. If a persistence path was configured and a saved state exists, it will be loaded instead of creating a new chain.
Errors
Returns an error if loading persisted state fails.
pub async fn init_fingerprint(&self, agent_did: &str) -> ArsenalResult<()>;Source line: 77.
proxy_client::ProxyClient::proxy_request
Send a proxy request through the broker.
Automatically attaches the current fingerprint and advances the chain on success.
Errors
Returns an error if the proxy request fails or the broker rejects it.
pub async fn proxy_request(&self, request: ProxyRequest) -> ArsenalResult<ProxyResponse>;Source line: 108.
proxy_client::ProxyClient::fingerprint_sequence
Get the current fingerprint state sequence number.
pub async fn fingerprint_sequence(&self) -> Option<u64>;Source line: 148.
proxy_client::ProxyClient::save_fingerprint_state
Save fingerprint state to disk (if persistence path is configured).
Errors
Returns an error if serialization or file write fails.
pub async fn save_fingerprint_state(&self) -> ArsenalResult<()>;Source line: 158.