pub enum LifecycleClass {
Primary,
Corpus {
store: String,
},
Blob,
}Expand description
Lifecycle class of one row type the app writes (ADR-203 D6).
Primary rows live in the shared substrate and outlive stop, uninstall
and purge. Corpus rows live in the store the manifest names and are
dropped as a unit by purge; a representation (an index, an embedding, a
derived view) is a corpus row whose store is the index it lives in, so
the representation token resolves to Corpus. Blob rows are content
addressed and referenced from primary rows; they name no store.
Variants§
Implementations§
Source§impl LifecycleClass
impl LifecycleClass
Sourcepub fn from_token(token: &str, store: Option<&str>) -> Option<Self>
pub fn from_token(token: &str, store: Option<&str>) -> Option<Self>
Resolve a wire token and the store it names, if any. representation
is an alias of corpus; a corpus token with no store resolves to an
empty store name, which AppManifest::validate refuses. Anything
else is None.
Trait Implementations§
Source§impl Clone for LifecycleClass
impl Clone for LifecycleClass
Source§impl Debug for LifecycleClass
impl Debug for LifecycleClass
impl Eq for LifecycleClass
Source§impl PartialEq for LifecycleClass
impl PartialEq for LifecycleClass
impl StructuralPartialEq for LifecycleClass
Auto Trait Implementations§
impl Freeze for LifecycleClass
impl RefUnwindSafe for LifecycleClass
impl Send for LifecycleClass
impl Sync for LifecycleClass
impl Unpin for LifecycleClass
impl UnsafeUnpin for LifecycleClass
impl UnwindSafe for LifecycleClass
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