pub struct ShardingQuery;Expand description
ShardingQuery Public, read-only query APIs for shard placement and inspection.
Implementations§
Source§impl ShardingQuery
impl ShardingQuery
Sourcepub fn lookup_tenant(pool: &str, tenant: &str) -> Option<Principal>
pub fn lookup_tenant(pool: &str, tenant: &str) -> Option<Principal>
Lookup the shard assigned to a tenant in a pool, if any.
Sourcepub fn registry_view() -> ShardingRegistryView
pub fn registry_view() -> ShardingRegistryView
Return a view of the full sharding registry.
Sourcepub fn tenants_view(pool: &str, shard: Principal) -> ShardingTenantsView
pub fn tenants_view(pool: &str, shard: Principal) -> ShardingTenantsView
Return all tenants currently assigned to a shard.
Auto Trait Implementations§
impl Freeze for ShardingQuery
impl RefUnwindSafe for ShardingQuery
impl Send for ShardingQuery
impl Sync for ShardingQuery
impl Unpin for ShardingQuery
impl UnwindSafe for ShardingQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more