Struct EgressPolicyResolver
pub struct EgressPolicyResolver { /* private fields */ }Expand description
Live point-of-use resolver for canonical operator egress policy.
Deliberately a closure rather than a resolved value: a long-lived store must never snapshot policy, so the lists are re-read on every request.
Implementations§
Source§impl EgressPolicyResolver
impl EgressPolicyResolver
Sourcepub fn new(
resolve: impl Fn(&PluginInstanceScope) -> Result<EgressPolicy, EgressError> + Send + Sync + 'static,
) -> Self
pub fn new( resolve: impl Fn(&PluginInstanceScope) -> Result<EgressPolicy, EgressError> + Send + Sync + 'static, ) -> Self
Wrap a live canonical-config lookup.
Trait Implementations§
Source§impl Clone for EgressPolicyResolver
impl Clone for EgressPolicyResolver
Source§fn clone(&self) -> EgressPolicyResolver
fn clone(&self) -> EgressPolicyResolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EgressPolicyResolver
impl !UnwindSafe for EgressPolicyResolver
impl Freeze for EgressPolicyResolver
impl Send for EgressPolicyResolver
impl Sync for EgressPolicyResolver
impl Unpin for EgressPolicyResolver
impl UnsafeUnpin for EgressPolicyResolver
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