Skip to main content

Field

Struct Field 

Source
pub struct Field { /* private fields */ }
Expand description

An opened field: the manifest plus its parsed exact descriptor.

Implementations§

Source§

impl Field

Source

pub fn open(store: &FieldStore, id: &FieldId, limits: Limits) -> Result<Field>

Open a field by id, loading and verifying its descriptor.

Source

pub fn manifest(&self) -> &FieldRoot

The field manifest.

Source

pub fn id(&self) -> FieldId

The field id.

Source

pub fn parsed(&self) -> &ParsedDescriptor

The parsed exact descriptor.

Source

pub fn descriptor_bytes(&self) -> &[u8] ⓘ

The raw serialized descriptor bytes.

Source

pub fn store_root(&self) -> &Path

The store root this field was opened from.

Source

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.

Source

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§

Source§

impl Debug for Field

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.