pub struct ConventionEntryDef {
pub name: String,
pub pattern: String,
pub order: i64,
pub mode: ConventionModeDef,
pub attach: Option<ConventionAttachDef>,
}Expand description
One @[convention] handler’s projected shape on the wire. Mirrors
brink_ir::ConventionProjectionEntry, with one deliberate exception:
there is no disposition field here, because every wire entry is,
today, the single existing ElementDisposition::Call case — this format
has no other disposition to distinguish yet, unlike the in-process type,
which carries the field explicitly (ConventionProjectionEntry::disposition’s
own “read what happened, don’t infer it from absence” reasoning) so a
future second disposition doesn’t need a wire bump to become visible
in-process. Adding a second disposition to this wire shape is exactly the
kind of section-local-version bump
CONVENTIONS_PROJECTION_WIRE_VERSION exists for — until then, this
one field’s omission is a considered simplification of a
currently-single-variant enum, not evidence of a lossy conversion
elsewhere.
Fields§
§name: String§pattern: String§order: i64§mode: ConventionModeDef§attach: Option<ConventionAttachDef>Trait Implementations§
Source§impl Clone for ConventionEntryDef
impl Clone for ConventionEntryDef
Source§fn clone(&self) -> ConventionEntryDef
fn clone(&self) -> ConventionEntryDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more