Skip to main content

with_source_view

Function with_source_view 

Source
pub fn with_source_view<T>(operation: impl FnOnce() -> T) -> Result<T, String>
Expand description

Run a synchronous source operation against one freshly verified policy snapshot. Publish the returned value only if the same authority still holds. Nested calls reuse the parent snapshot; they never refresh into a weaker view.