pub struct Field { /* private fields */ }Expand description
An opened field: the manifest plus its parsed exact descriptor.
Implementations§
Source§impl Field
impl Field
Sourcepub fn open(store: &FieldStore, id: &FieldId, limits: Limits) -> Result<Field>
pub fn open(store: &FieldStore, id: &FieldId, limits: Limits) -> Result<Field>
Open a field by id, loading and verifying its descriptor.
Sourcepub fn parsed(&self) -> &ParsedDescriptor
pub fn parsed(&self) -> &ParsedDescriptor
The parsed exact descriptor.
Sourcepub fn descriptor_bytes(&self) -> &[u8] ⓘ
pub fn descriptor_bytes(&self) -> &[u8] ⓘ
The raw serialized descriptor bytes.
Sourcepub fn store_root(&self) -> &Path
pub fn store_root(&self) -> &Path
The store root this field was opened from.
Sourcepub fn materialize_exact(&self, limits: Limits) -> Result<Vec<u8>>
pub fn materialize_exact(&self, limits: Limits) -> Result<Vec<u8>>
Materialize the exact original source bytes.
This is the archival authority: it is byte-identical to the standalone
.voldoc materialization and is the only path that verifies the
whole-source SHA-256.
Sourcepub fn materialize_node(
&self,
id: &NodeId,
limits: Limits,
budget: &mut EvalBudget,
) -> Result<Vec<u8>>
pub fn materialize_node( &self, id: &NodeId, limits: Limits, budget: &mut EvalBudget, ) -> Result<Vec<u8>>
Materialize a seed node’s output by id, using the field’s own seed handle (which for an EntropyFS-backed store is the shared engine, not a reopen).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Field
impl !Send for Field
impl !Sync for Field
impl !UnwindSafe for Field
impl Freeze for Field
impl Unpin for Field
impl UnsafeUnpin for Field
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