pub enum ReadAtCapability {
Available {
readable_from_epoch: u64,
readable_through_epoch: u64,
},
Unavailable {
reason: String,
},
}Expand description
Backend evidence required before remote strong/stale reads may be enabled.
Variants§
Available
The backend retains every epoch in this inclusive readable interval and can bind a read-only session to the complete supplied fence.
Fields
The backend must not be selected for remote strong/stale reads.
Implementations§
Source§impl ReadAtCapability
impl ReadAtCapability
Creates an explicit unavailable capability result.
Sourcepub fn validate(&self, point: &ReadAtPoint) -> ReadAtResult<()>
pub fn validate(&self, point: &ReadAtPoint) -> ReadAtResult<()>
Checks whether point is inside the proven retained interval.
Produces an unavailable result while retaining the requested epoch.
Trait Implementations§
Source§impl Clone for ReadAtCapability
impl Clone for ReadAtCapability
Source§fn clone(&self) -> ReadAtCapability
fn clone(&self) -> ReadAtCapability
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 ReadAtCapability
impl Debug for ReadAtCapability
Source§impl<'de> Deserialize<'de> for ReadAtCapability
impl<'de> Deserialize<'de> for ReadAtCapability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReadAtCapability
Source§impl PartialEq for ReadAtCapability
impl PartialEq for ReadAtCapability
Source§impl Serialize for ReadAtCapability
impl Serialize for ReadAtCapability
impl StructuralPartialEq for ReadAtCapability
Auto Trait Implementations§
impl Freeze for ReadAtCapability
impl RefUnwindSafe for ReadAtCapability
impl Send for ReadAtCapability
impl Sync for ReadAtCapability
impl Unpin for ReadAtCapability
impl UnsafeUnpin for ReadAtCapability
impl UnwindSafe for ReadAtCapability
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