pub struct NoExternalBases;Expand description
A DeltaBaseSource with no external bases: a pack must be
self-contained (every delta’s base an earlier entry). Used for
closure-profile packs, pack rewrites and tests.
Trait Implementations§
Source§impl Clone for NoExternalBases
impl Clone for NoExternalBases
impl Copy for NoExternalBases
Source§impl Debug for NoExternalBases
impl Debug for NoExternalBases
Source§impl Default for NoExternalBases
impl Default for NoExternalBases
Source§impl DeltaBaseSource for NoExternalBases
impl DeltaBaseSource for NoExternalBases
Source§fn base(&mut self, _id: &Hash) -> Result<Option<Vec<u8>>, PackError>
fn base(&mut self, _id: &Hash) -> Result<Option<Vec<u8>>, PackError>
Canonical object bytes for
id, or None when this source may
not provide it. “Not permitted” and “does not exist” MUST both
be None: the decoder reports them identically, by design. Read moreSource§const VERIFIED: bool = false
const VERIFIED: bool = false
Whether
Self::base returns bytes already verified to be the
object named by the requested id (the store’s read verifies). Read moreSource§fn base_with_admission(
&mut self,
id: &Hash,
admit: impl FnOnce(usize) -> Result<(), PackError>,
) -> Result<Option<Vec<u8>>, PackError>
fn base_with_admission( &mut self, id: &Hash, admit: impl FnOnce(usize) -> Result<(), PackError>, ) -> Result<Option<Vec<u8>>, PackError>
Fetch with allocation admission. The default charges after
base
returns; sources that know the length first should override this to
call admit before allocating, as &ObjectStore does. Before
returning Some(bytes), every override must successfully invoke
admit exactly once with bytes.len() and propagate its error. Read moreimpl Eq for NoExternalBases
Source§impl PartialEq for NoExternalBases
impl PartialEq for NoExternalBases
impl StructuralPartialEq for NoExternalBases
Auto Trait Implementations§
impl Freeze for NoExternalBases
impl RefUnwindSafe for NoExternalBases
impl Send for NoExternalBases
impl Sync for NoExternalBases
impl Unpin for NoExternalBases
impl UnsafeUnpin for NoExternalBases
impl UnwindSafe for NoExternalBases
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
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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