pub struct LfsAdapterConfig {
pub window_bytes: u64,
pub max_object_bytes: u64,
}Expand description
The batch/transfer adapter’s knobs (the door budgets the ceiling;
the adapter splits at the window). Defaults are the POC-L datums:
the 32 MiB split window and the fetch_max_total_bytes-shaped
64 MiB object ceiling (raised per assembly to trade opens for
windows — lfs.md §2).
Fields§
§window_bytes: u64The download windows’ boundary — the size each verified
read_range window serves before the next (the POC-L split
datum, 32 MiB). Must be non-zero.
max_object_bytes: u64The download span ceiling (the door’s budget per assembly —
lfs.md §2’s “the door budgets the whole arm”, realized
adapter-side): the resolved span of any download form is
the budgeted quantity — a range-less whole serve, an
open-ended resume (bytes=0-), or any resolved span over the
ceiling refuses LfsAdapterError::TooLarge; a partial span
under it rides the window arithmetic (a resume’s legitimate
use).
Trait Implementations§
Source§impl Clone for LfsAdapterConfig
impl Clone for LfsAdapterConfig
Source§impl Debug for LfsAdapterConfig
impl Debug for LfsAdapterConfig
Source§impl Default for LfsAdapterConfig
impl Default for LfsAdapterConfig
impl Eq for LfsAdapterConfig
Source§impl PartialEq for LfsAdapterConfig
impl PartialEq for LfsAdapterConfig
impl StructuralPartialEq for LfsAdapterConfig
Auto Trait Implementations§
impl Freeze for LfsAdapterConfig
impl RefUnwindSafe for LfsAdapterConfig
impl Send for LfsAdapterConfig
impl Sync for LfsAdapterConfig
impl Unpin for LfsAdapterConfig
impl UnsafeUnpin for LfsAdapterConfig
impl UnwindSafe for LfsAdapterConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.