pub struct ServerRegionalReadGuard { /* private fields */ }Expand description
Replica-side defense-in-depth for regional read API handlers.
Routing metadata can be stale, so every server instance validates its own durable watermark, epoch, projection version, and authorization freshness immediately before reading.
Implementations§
Source§impl ServerRegionalReadGuard
impl ServerRegionalReadGuard
Sourcepub const fn new(observation: ReplicaObservation) -> Self
pub const fn new(observation: ReplicaObservation) -> Self
Creates a guard from the adapter’s latest durable apply observation.
Sourcepub fn update(&mut self, observation: ReplicaObservation)
pub fn update(&mut self, observation: ReplicaObservation)
Replaces health and watermark state after an atomic adapter observation refresh.
Authorizes one regional read and returns freshness metadata for its response.
§Errors
Fails closed if this node cannot prove the requested consistency and security bounds.
Trait Implementations§
Source§impl Clone for ServerRegionalReadGuard
impl Clone for ServerRegionalReadGuard
Auto Trait Implementations§
impl Freeze for ServerRegionalReadGuard
impl RefUnwindSafe for ServerRegionalReadGuard
impl Send for ServerRegionalReadGuard
impl Sync for ServerRegionalReadGuard
impl Unpin for ServerRegionalReadGuard
impl UnsafeUnpin for ServerRegionalReadGuard
impl UnwindSafe for ServerRegionalReadGuard
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more