mars-server · bond
Public declarations and documentation for mars-server::bond.
Package: mars-server · Workspace version: 0.1.0 · Module: bond
This reference follows declared modules and public syntax, including public implementation methods. Function bodies and constant values are omitted. Feature conditions are retained. Private-module re-exports and trait resolution require the compiler; not every declaration is a root import.
bond::BondPortError
Fail-closed bond dependency errors.
#[derive(Debug, thiserror::Error)]
pub enum BondPortError {
#[error("bond `{0}` is unknown")]
Unknown(String),
#[error("bond dependency failed: {0}")]
Transport(String),
}Source line: 16.
bond::BondPort
Provider-neutral bond lookup and registry-local provisioning seam.
#[async_trait]
pub trait BondPort: Send + Sync {
/// Resolve a bond from locally available state.
async fn resolve(&self, bond_id: &str) -> Result<Bond, BondPortError>;
/// Atomically provision registry-local bond metadata with its audit and
/// idempotency response.
async fn provision(
&self,
command: BondCommitCommand,
) -> Result<StoredHttpResponse, ServerError>;
}Source line: 25.
bond::UnavailableBondPort
Fail-closed port used when callers construct a pipeline without a store.
pub struct UnavailableBondPort;Source line: 38.
bond::RegistryLocalBondPort
Concrete bond port backed by the active MARS registry store.
pub struct RegistryLocalBondPort {
}Source line: 57.
bond::RegistryLocalBondPort::new
#[must_use]
pub fn new(store: Arc<dyn EntryStore>) -> Self;Source line: 63.
Source provenance
Source: mars-server/src/bond.rs · SHA-256 61d06ad91ea0fda2d5cd3a15ab901930a74a2fae9dc783076c00519848d4d26a. Package overview.