pub struct BootstrapStore { /* private fields */ }Expand description
An unpublished store at its permanent path, protected by a bootstrap lease.
Dropping preserves resumable work; cancel removes it after its database
closes. Publication removes the marker without moving any open files.
Implementations§
Source§impl BootstrapStore
impl BootstrapStore
Sourcepub fn directory(&self) -> StoreDir
pub fn directory(&self) -> StoreDir
The unpublished directory, which opens the store while this bootstrap holds its lock.
Sourcepub fn resumed(&self) -> bool
pub fn resumed(&self) -> bool
Whether the installation was left by an earlier call, rather than made by this one.
Sourcepub fn publish(&self) -> Result<(), BootstrapDirectoryError>
pub fn publish(&self) -> Result<(), BootstrapDirectoryError>
Publish the loaded, open store by removing its durable marker.
After a Create(Published { .. }) error it is already visible.
Sourcepub fn is_published(&self) -> Result<bool, FileError>
pub fn is_published(&self) -> Result<bool, FileError>
Whether the store is published: its marker is gone. After a panic in a publication, this says how far it got.
Sourcepub fn cancel(&self) -> Result<(), BootstrapDirectoryError>
pub fn cancel(&self) -> Result<(), BootstrapDirectoryError>
Remove unpublished data and locks after all database work has closed. An absent directory succeeds; a published store cannot be cancelled.