trait StateValidator<R> {
type Error;
type Publisher: Publish<R>;
// Required method
fn validate(
publisher: &Self::Publisher,
) -> Result<HashMap<Label, PathBuf>, Self::Error>;
}Expand description
Validates the state of the atom source.
This trait is called during the construction of a publisher to ensure that the store is never allowed to enter an inconsistent state. Any conditions that would result in an inconsistent state will return an error, making it impossible to construct a publisher until the state is corrected.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.