Skip to main content

CommitDocs

Enum CommitDocs 

Source
pub enum CommitDocs {
    Full {
        theirs: LeanManifest,
        installed: LeanManifest,
    },
    View {
        theirs: DocView,
        overlay: BTreeMap<String, Option<LeanEntry>>,
        retired: Vec<String>,
        seq: u64,
        tombstones: BTreeMap<String, Tombstone>,
        sole_writer: bool,
        boundary_source: Option<String>,
    },
}
Expand description

What a commit installed, for the steps after its CAS: the whole documents on the full path, a view and the overlay on lever G’s.

Variants§

§

Full

Fields

§installed: LeanManifest
§

View

Fields

§theirs: DocView
§retired: Vec<String>

The retire set, computed for the retire log before the CAS.

§seq: u64
§sole_writer: bool
§boundary_source: Option<String>

Implementations§

Source§

impl CommitDocs

Source

pub fn installed_seq(&self) -> u64

Source

pub fn retired(&self) -> Vec<String>

The handles the installed document no longer cites anywhere, of those theirs cited at a path the install changed.

Source

pub async fn installed_get(&mut self, p: &str) -> LeanResult<Option<LeanEntry>>

Source

pub async fn theirs_get(&mut self, p: &str) -> LeanResult<Option<LeanEntry>>

Source

pub async fn installed_at( &mut self, paths: &[String], ) -> LeanResult<LeanManifest>

The installed document’s entries at paths alone, for a caller that reads only those (note_carrier_uncited).

Source

pub async fn installed_full(&mut self) -> LeanResult<Cow<'_, LeanManifest>>

The whole installed document: the collection pass’s.

Auto Trait Implementations§

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.