sentinel-core 0.1.3

The flow sentinel of your microservices.
Documentation
1
2
3
4
5
6
7
8
9
use crate::Result;
use std::fmt;

pub trait SentinelRule: fmt::Debug + Send + Sync {
    fn resource_name(&self) -> String;
    fn is_valid(&self) -> Result<()> {
        Ok(())
    }
}