pub struct CommitNativeBundle { /* private fields */ }Expand description
The committed head bundle paired with the machine store it protects.
Implementations§
Source§impl CommitNativeBundle
impl CommitNativeBundle
Sourcepub fn for_resolved(resolved: &ResolvedDataDir) -> Option<Self>
pub fn for_resolved(resolved: &ResolvedDataDir) -> Option<Self>
Project stores have a conventional git path. Explicit and user-default stores do not: exporting either beside the caller’s cwd would recreate the wrong-directory backup bug under another name.
pub fn new( data_dir: impl Into<PathBuf>, bundle_path: impl Into<PathBuf>, ) -> Self
pub fn path(&self) -> &Path
Sourcepub async fn begin_write(
&self,
store: &EmbeddedKernelStore,
) -> Result<PendingBundleExport, PortError>
pub async fn begin_write( &self, store: &EmbeddedKernelStore, ) -> Result<PendingBundleExport, PortError>
Proves that the live store and committed bundle are the same history, then marks a write as needing an export before the store can change. The returned guard holds the inter-process lock through publication.
Sourcepub async fn publish(
&self,
store: &EmbeddedKernelStore,
pending: &PendingBundleExport,
) -> Result<BundleHeader, PortError>
pub async fn publish( &self, store: &EmbeddedKernelStore, pending: &PendingBundleExport, ) -> Result<BundleHeader, PortError>
Writes the complete stream after a successful memory mutation. An identical digest is already current, so an idempotent retry does not churn the snapshot creation time in git.
Trait Implementations§
Source§impl Clone for CommitNativeBundle
impl Clone for CommitNativeBundle
Source§fn clone(&self) -> CommitNativeBundle
fn clone(&self) -> CommitNativeBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommitNativeBundle
impl Debug for CommitNativeBundle
impl Eq for CommitNativeBundle
Source§impl PartialEq for CommitNativeBundle
impl PartialEq for CommitNativeBundle
impl StructuralPartialEq for CommitNativeBundle
Auto Trait Implementations§
impl Freeze for CommitNativeBundle
impl RefUnwindSafe for CommitNativeBundle
impl Send for CommitNativeBundle
impl Sync for CommitNativeBundle
impl Unpin for CommitNativeBundle
impl UnsafeUnpin for CommitNativeBundle
impl UnwindSafe for CommitNativeBundle
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