pub trait IsolationHandler: Send + Sync {
// Required methods
fn get_routing(
&self,
tenant: &TenantId,
config: &TenantConfig,
) -> RoutingDecision;
fn can_access_table(
&self,
tenant: &TenantId,
table: &str,
config: &TenantConfig,
) -> bool;
fn strategy_name(&self) -> &'static str;
}Expand description
Trait for isolation strategy handlers
Required Methods§
Sourcefn get_routing(
&self,
tenant: &TenantId,
config: &TenantConfig,
) -> RoutingDecision
fn get_routing( &self, tenant: &TenantId, config: &TenantConfig, ) -> RoutingDecision
Get routing decision for tenant
Sourcefn can_access_table(
&self,
tenant: &TenantId,
table: &str,
config: &TenantConfig,
) -> bool
fn can_access_table( &self, tenant: &TenantId, table: &str, config: &TenantConfig, ) -> bool
Check if tenant can access a table
Sourcefn strategy_name(&self) -> &'static str
fn strategy_name(&self) -> &'static str
Get isolation strategy name