pub struct CustomLeafNode { /* private fields */ }Expand description
One bounded registered custom-leaf declaration in a format-4 flow.
The declaration contains only restart-relevant meaning. Runtime locations, credentials, handler objects, repository handles, and deployment policy are deliberately absent from the definition fingerprint.
Implementations§
Source§impl CustomLeafNode
impl CustomLeafNode
Sourcepub const fn new(
id: NodeId,
step_name: StepName,
kind: CustomLeafKind,
handler_revision: ComponentRevision,
state_schema_id: StateSchemaId,
state_schema_version: StateSchemaVersion,
) -> Self
pub const fn new( id: NodeId, step_name: StepName, kind: CustomLeafKind, handler_revision: ComponentRevision, state_schema_id: StateSchemaId, state_schema_version: StateSchemaVersion, ) -> Self
Declares one custom leaf with its exact handler and durable-state identity.
Sourcepub const fn with_start_controls(self, start: StartControls) -> Self
pub const fn with_start_controls(self, start: StartControls) -> Self
Applies restart-relevant start controls.
Sourcepub fn with_fault_policy(self, fault: FaultPolicy) -> Self
pub fn with_fault_policy(self, fault: FaultPolicy) -> Self
Applies the framework fault policy executed around this leaf.
Sourcepub fn with_listener_revision(self, listener: ComponentRevision) -> Self
pub fn with_listener_revision(self, listener: ComponentRevision) -> Self
Adds one framework step-listener revision in deterministic before-order.
Sourcepub const fn kind(&self) -> &CustomLeafKind
pub const fn kind(&self) -> &CustomLeafKind
Borrows the stable custom-leaf kind selected at registration.
Sourcepub const fn handler_revision(&self) -> &ComponentRevision
pub const fn handler_revision(&self) -> &ComponentRevision
Borrows the exact executable handler revision.
Sourcepub const fn state_schema_id(&self) -> &StateSchemaId
pub const fn state_schema_id(&self) -> &StateSchemaId
Borrows the durable custom-state schema identifier.
Sourcepub const fn state_schema_version(&self) -> StateSchemaVersion
pub const fn state_schema_version(&self) -> StateSchemaVersion
Returns the durable custom-state schema version.
Sourcepub const fn start_controls(&self) -> StartControls
pub const fn start_controls(&self) -> StartControls
Returns the framework start controls.
Sourcepub const fn fault_policy(&self) -> Option<&FaultPolicy>
pub const fn fault_policy(&self) -> Option<&FaultPolicy>
Borrows the optional framework fault policy.
Sourcepub fn listener_revisions(&self) -> &[ComponentRevision]
pub fn listener_revisions(&self) -> &[ComponentRevision]
Borrows registered framework listener revisions.