pub struct ResolvedPolicy {
pub request_local: bool,
pub coalesce: bool,
pub local: ResolvedLayer,
pub remote: ResolvedLayer,
pub remote_read_timeout_ms: u64,
pub stale_on_error_max_age_ms: u64,
pub stale_on_error_config_error: bool,
pub shadow: ResolvedShadow,
}Expand description
The captured policy of one enabled invocation.
Fields§
§request_local: boolWhether the call memoizes in the outermost enabled scope.
coalesce: boolWhether the call joins or leads a single flight for its key.
local: ResolvedLayerThe process-local layer.
remote: ResolvedLayerThe remote layer.
remote_read_timeout_ms: u64The effective remote read budget in milliseconds: overlay, then operation, then instance default.
stale_on_error_max_age_ms: u64Zero when recovery is off.
stale_on_error_config_error: boolThe recovery age leaf was present but invalid (not whole seconds, or
not above the remote TTL): recovery is off and a config_resolution
error is emitted on the remote layer.
shadow: ResolvedShadowThe shadow validation policy.
Trait Implementations§
Source§impl Clone for ResolvedPolicy
impl Clone for ResolvedPolicy
Source§fn clone(&self) -> ResolvedPolicy
fn clone(&self) -> ResolvedPolicy
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 ResolvedPolicy
impl Debug for ResolvedPolicy
Source§impl PartialEq for ResolvedPolicy
impl PartialEq for ResolvedPolicy
Source§fn eq(&self, other: &ResolvedPolicy) -> bool
fn eq(&self, other: &ResolvedPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedPolicy
Auto Trait Implementations§
impl Freeze for ResolvedPolicy
impl RefUnwindSafe for ResolvedPolicy
impl Send for ResolvedPolicy
impl Sync for ResolvedPolicy
impl Unpin for ResolvedPolicy
impl UnsafeUnpin for ResolvedPolicy
impl UnwindSafe for ResolvedPolicy
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