Function relayable
pub const fn relayable(codec: &'static Codec) -> FacetExpand description
The facet of a relayable point, carrying its codec: the point
crosses processes (Relay):
- an event point’s events, their input written and read by
codec(Codec::of::<P>()); the bus journals them too; - a request point’s asks, from another process, their input and value
written and read by
codec(Codec::request::<P>()); the bus treats it as fail-closed too, so no answer in time is a refusal.
In a const table, the codec is a const of its own:
ⓘ
const CODEC: Codec = Codec::of::<DocChanged>();
PointDecl::of::<DocChanged>("…").facets(&[relayable(&CODEC)])check refuses it on an alter or collect point, on a request whose
codec has no value, and with a codec of another point.