pub struct VisibleSourcePack { /* private fields */ }Expand description
Read-side disclosure artifacts. A partial projection cannot be passed to
publish_source, which requires a complete SourcePack.
Implementations§
Source§impl VisibleSourcePack
impl VisibleSourcePack
Sourcepub fn prepare(
source: &impl ObjectSource,
selected: &State,
references: &[ReferenceProof],
redactions: &EntryRedactions,
scratch_root: &Path,
budget: SourceBudget,
) -> Result<Self, Error>
pub fn prepare( source: &impl ObjectSource, selected: &State, references: &[ReferenceProof], redactions: &EntryRedactions, scratch_root: &Path, budget: SourceBudget, ) -> Result<Self, Error>
Prepare an admitted source read, omitting hidden source entries and reference descriptors when an entry restriction applies. Full reads retain their independently verified reference closures.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether the pack proves full source and selected descriptor availability.
Sourcepub fn artifacts(&self) -> &[PackExtent; 2]
pub fn artifacts(&self) -> &[PackExtent; 2]
Whole independently hashed pack/index artifacts in transmission order.
Auto Trait Implementations§
impl Freeze for VisibleSourcePack
impl RefUnwindSafe for VisibleSourcePack
impl Send for VisibleSourcePack
impl Sync for VisibleSourcePack
impl Unpin for VisibleSourcePack
impl UnsafeUnpin for VisibleSourcePack
impl UnwindSafe for VisibleSourcePack
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> 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