pub trait BatchPolicy {
// Required method
fn allows_batch(&self, profile: &FeatureProfile) -> bool;
}Expand description
Decides whether a batch frame is acceptable in this session.
The trait belongs to the consumer, so it lives in the module that consumes it rather than in a shared ports module or in an adapter.
Required Methods§
Sourcefn allows_batch(&self, profile: &FeatureProfile) -> bool
fn allows_batch(&self, profile: &FeatureProfile) -> bool
Whether a frame holding several messages may be processed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".