pub struct RuntimePolicy(pub Value);Expand description
A sparse runtime overlay returned by a PolicyProvider.
Each present leaf replaces the operation leaf; omitted leaves inherit. Leaves may hold invalid values on purpose: their consequences are defined by the portable contract (an invalid TTL or ramp disables only that layer, an invalid flag or read deadline bypasses caching for the call).
Tuple Fields§
§0: ValueImplementations§
Trait Implementations§
Source§impl Clone for RuntimePolicy
impl Clone for RuntimePolicy
Source§fn clone(&self) -> RuntimePolicy
fn clone(&self) -> RuntimePolicy
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 RuntimePolicy
impl Debug for RuntimePolicy
Source§impl From<Policy> for RuntimePolicy
impl From<Policy> for RuntimePolicy
Source§impl From<Value> for RuntimePolicy
impl From<Value> for RuntimePolicy
Source§impl PartialEq for RuntimePolicy
impl PartialEq for RuntimePolicy
Source§fn eq(&self, other: &RuntimePolicy) -> bool
fn eq(&self, other: &RuntimePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimePolicy
Auto Trait Implementations§
impl Freeze for RuntimePolicy
impl RefUnwindSafe for RuntimePolicy
impl Send for RuntimePolicy
impl Sync for RuntimePolicy
impl Unpin for RuntimePolicy
impl UnsafeUnpin for RuntimePolicy
impl UnwindSafe for RuntimePolicy
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