pub struct AtomicReadFileBudget {
pub max_requested_stream_octets: usize,
pub max_requested_records: usize,
pub max_service_ack_bytes: usize,
}Expand description
Positive local limits, independent of peer APDU size and segmentation.
Raw request counts are checked after existing handler validation, before the storage read. ACK bytes include every service field but exclude APDU/NPDU. This does not bound opaque storage work or its single owned read result; notably, a record-count limit is not a total storage-byte limit.
Fields§
§max_requested_stream_octets: usizeMaximum raw requested stream octets (default 16384).
max_requested_records: usizeMaximum raw requested records (default 256); the legacy read window remains.
max_service_ack_bytes: usizeMaximum complete encoded service ACK bytes (default 16384).
Implementations§
Trait Implementations§
Source§impl Clone for AtomicReadFileBudget
impl Clone for AtomicReadFileBudget
impl Copy for AtomicReadFileBudget
Source§impl Debug for AtomicReadFileBudget
impl Debug for AtomicReadFileBudget
Source§impl Default for AtomicReadFileBudget
impl Default for AtomicReadFileBudget
impl Eq for AtomicReadFileBudget
Source§impl PartialEq for AtomicReadFileBudget
impl PartialEq for AtomicReadFileBudget
impl StructuralPartialEq for AtomicReadFileBudget
Auto Trait Implementations§
impl Freeze for AtomicReadFileBudget
impl RefUnwindSafe for AtomicReadFileBudget
impl Send for AtomicReadFileBudget
impl Sync for AtomicReadFileBudget
impl Unpin for AtomicReadFileBudget
impl UnsafeUnpin for AtomicReadFileBudget
impl UnwindSafe for AtomicReadFileBudget
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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