pub struct DocumentRecoveryPolicy { /* private fields */ }Expand description
Explicit memory and pagination limits for one recovery operation.
Implementations§
Source§impl DocumentRecoveryPolicy
impl DocumentRecoveryPolicy
Sourcepub fn try_new(
page_size: u32,
max_documents: u32,
max_snapshot_bytes: usize,
) -> Result<Self, DocumentRecoveryError>
pub fn try_new( page_size: u32, max_documents: u32, max_snapshot_bytes: usize, ) -> Result<Self, DocumentRecoveryError>
Validates policy bounds before any repository access or decoding.
Sourcepub const fn max_documents(self) -> u32
pub const fn max_documents(self) -> u32
Returns the total document ceiling.
Sourcepub const fn max_snapshot_bytes(self) -> usize
pub const fn max_snapshot_bytes(self) -> usize
Returns the authenticated plaintext byte ceiling.
Trait Implementations§
Source§impl Clone for DocumentRecoveryPolicy
impl Clone for DocumentRecoveryPolicy
impl Copy for DocumentRecoveryPolicy
Source§impl Debug for DocumentRecoveryPolicy
impl Debug for DocumentRecoveryPolicy
Source§impl Default for DocumentRecoveryPolicy
impl Default for DocumentRecoveryPolicy
impl Eq for DocumentRecoveryPolicy
Source§impl PartialEq for DocumentRecoveryPolicy
impl PartialEq for DocumentRecoveryPolicy
impl StructuralPartialEq for DocumentRecoveryPolicy
Auto Trait Implementations§
impl Freeze for DocumentRecoveryPolicy
impl RefUnwindSafe for DocumentRecoveryPolicy
impl Send for DocumentRecoveryPolicy
impl Sync for DocumentRecoveryPolicy
impl Unpin for DocumentRecoveryPolicy
impl UnsafeUnpin for DocumentRecoveryPolicy
impl UnwindSafe for DocumentRecoveryPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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