Trait SentinelRule

Source
pub trait SentinelRule:
    Debug
    + Send
    + Sync {
    // Required method
    fn resource_name(&self) -> String;

    // Provided method
    fn is_valid(&self) -> Result<()> { ... }
}

Required Methods§

Provided Methods§

Source

fn is_valid(&self) -> Result<()>

Implementors§

Source§

impl SentinelRule for sentinel_core::core::circuitbreaker::rule::Rule

Source§

impl SentinelRule for sentinel_core::core::flow::rule::Rule

Source§

impl SentinelRule for sentinel_core::core::hotspot::rule::Rule

Source§

impl SentinelRule for sentinel_core::core::isolation::rule::Rule

Source§

impl SentinelRule for sentinel_core::core::system::rule::Rule