pub struct ProviderCache {
pub values: NamespaceValues,
pub pushed: PushedPairs,
}Expand description
What provider dogs have pushed: the values, and which
(namespace, environment) pairs carry a push at all.
The two travel together because they are read together and must come from one moment: a values map from before a push read beside a pair set from after it would call a key permanently missing that the push had just supplied.
An empty push is why the pair set is not derivable from the values. A dog saying “I have nothing for staging” registers the pair and holds no keys, which is a different answer from a dog that has not pushed.
Debug does not leak a value: it prints two counts.
Fields§
§values: NamespaceValuesEvery namespace’s values.
pushed: PushedPairsEvery (namespace, environment) pair a push has landed for.
Trait Implementations§
Source§impl Clone for ProviderCache
impl Clone for ProviderCache
Source§fn clone(&self) -> ProviderCache
fn clone(&self) -> ProviderCache
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 ProviderCache
Redacted (IR-41): values holds provider values in the clear.
impl Debug for ProviderCache
Redacted (IR-41): values holds provider values in the clear.
Source§impl Default for ProviderCache
impl Default for ProviderCache
Source§fn default() -> ProviderCache
fn default() -> ProviderCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProviderCache
impl RefUnwindSafe for ProviderCache
impl Send for ProviderCache
impl Sync for ProviderCache
impl Unpin for ProviderCache
impl UnsafeUnpin for ProviderCache
impl UnwindSafe for ProviderCache
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