Skip to main content

System

Struct System 

Source
pub struct System {
    pub members: Vec<Member>,
}
Expand description

A stitched system: members plus the cross-repo edges between them.

Fields§

§members: Vec<Member>

Member repositories in open order (deterministic: caller order).

Implementations§

Source§

impl System

Source

pub fn open(roots: &[&Path]) -> Result<System, StoreError>

Open a system over member checkout roots. Each member database is <root>/.scc/scc.db (the default state dir); members must already be indexed. Stitching is read-only over member graphs.

Source

pub fn member_entity_ids( &self, repo_id: &str, ) -> Result<Vec<String>, StoreError>

Canonical entity ids of one member (standalone-vs-system stability reads these through System without rewriting them).

Source

pub fn stitch_routes(&self) -> Result<Vec<Stitch>, StoreError>

Stitch HTTP contracts: same VERB /path in ≥2 members is a contract-SHAPE match. ROUTE entities are server declarations, so two members exposing the same route are two servers that may never have called each other: MatchKind::MatchingContract, never Exact. Same path with different verbs across members is ambiguous: recorded with all claimants, never joined.

Source

pub fn stitch_topics(&self) -> Result<Vec<Stitch>, StoreError>

Stitch event topics: same topic name in ≥2 members. Direction decides the verdict from each member’s PUBLISHES/SUBSCRIBES edges: a publisher in one member and a subscriber in another is an MatchKind::Exact dependency; pub+pub, sub+sub, or unevidenced sides are a MatchKind::MatchingContract shape match. Each end carries its side (EndRole).

Source

pub fn stitch_package_exports(&self) -> Result<Vec<Stitch>, StoreError>

Stitch public API: member A imports module M with symbol names N while member B exports n ∈ N. When M names B’s repo (normalized), the repo binding is declared; otherwise the symbol match is inferred and the module→repo binding stays unresolved. A symbol exported by ≥2 members is ambiguous.

Trait Implementations§

Source§

impl Debug for System

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for System

§

impl !Sync for System

§

impl !UnwindSafe for System

§

impl Freeze for System

§

impl Send for System

§

impl Unpin for System

§

impl UnsafeUnpin for System

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.