pub struct CallAllOptions {
pub max_pages: u32,
pub max_total_bytes: usize,
pub merge_policy: MergePolicy,
}Expand description
SP-pagination-v1 §4.8 — controls AtdClient::call_all’s auto-loop.
Sanity bounds against runaway loops (misbehaving server keeps issuing
cursors) and against accidentally swallowing more memory than the
caller expected. Either cap triggers AtdError::PaginationLimitExceeded
with pages_fetched + bytes_fetched so callers can decide whether to
treat the partial as success or retry with narrower args.
Fields§
§max_pages: u32Maximum number of pages (including the initial call). Default 100.
max_total_bytes: usizeMaximum cumulative serialized bytes across pages. Default 32 MiB.
merge_policy: MergePolicyHow to combine multiple pages into one Value. See MergePolicy.
Trait Implementations§
Source§impl Clone for CallAllOptions
impl Clone for CallAllOptions
Source§fn clone(&self) -> CallAllOptions
fn clone(&self) -> CallAllOptions
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 CallAllOptions
impl Debug for CallAllOptions
Auto Trait Implementations§
impl Freeze for CallAllOptions
impl RefUnwindSafe for CallAllOptions
impl Send for CallAllOptions
impl Sync for CallAllOptions
impl Unpin for CallAllOptions
impl UnsafeUnpin for CallAllOptions
impl UnwindSafe for CallAllOptions
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