pub struct CircuitKey {
pub tenant_id: String,
pub provider: String,
}Expand description
Composite key for the CircuitTracker registry.
Identifies a unique (tenant_id, provider) pair. Two agent runners serving
different tenants against the same provider share no circuit state, so a
misbehaving tenant cannot trip the circuit for other tenants.
Fields§
§tenant_id: String§provider: StringTrait Implementations§
Source§impl Clone for CircuitKey
impl Clone for CircuitKey
Source§fn clone(&self) -> CircuitKey
fn clone(&self) -> CircuitKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CircuitKey
impl Debug for CircuitKey
Source§impl Hash for CircuitKey
impl Hash for CircuitKey
Source§impl PartialEq for CircuitKey
impl PartialEq for CircuitKey
Source§fn eq(&self, other: &CircuitKey) -> bool
fn eq(&self, other: &CircuitKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CircuitKey
impl StructuralPartialEq for CircuitKey
Auto Trait Implementations§
impl Freeze for CircuitKey
impl RefUnwindSafe for CircuitKey
impl Send for CircuitKey
impl Sync for CircuitKey
impl Unpin for CircuitKey
impl UnsafeUnpin for CircuitKey
impl UnwindSafe for CircuitKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.