Skip to main content

PullConsumer

Trait PullConsumer 

Source
pub trait PullConsumer: Send + Sync {
    // Required method
    fn names(&self) -> &[String];

    // Provided method
    fn label(&self) -> &str { ... }
}
Expand description

Anything that wants to pull Polydat values at cycle time.

Implementors expose the names they intend to read; the spawn path makes those names available on the spawned kernel for the activity-side fixture to seal into a PullPlan.

This trait is Send + Sync because consumers are stored on the artifact and may flow across threads with the spawned kernel.

Required Methods§

Source

fn names(&self) -> &[String]

The Polydat names this consumer will pull at cycle time. Returned in registration order so handle indices match the caller’s expected layout.

Provided Methods§

Source

fn label(&self) -> &str

Diagnostic label — appears in error messages when a registered name fails to resolve against the kernel program at seal time. Default: "<unnamed-consumer>".

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§