Skip to main content

declare_all

Function declare_all 

pub fn declare_all(bus: &dyn Bus, table: &[PointDecl]) -> Vec<Refused>
Expand description

Declares every point of a library’s contract table on bus; the refusals, in table order, each point refused left undeclared:

  • a point already declared (another library, or a second application on the same bus);
  • a point that needs a capability contract the bus does not offer (Refused::Unsupported): those it names and those of its facets (PointDecl::required), with the contracts they require (offers);
  • whatever the bus refuses at declaration: an id that breaks the naming rule (Refused::BadId), a facet its contract refuses (Refused::Contract: a journaled point that is not an event, a relayable point that cannot cross or carries another point’s codec).