Enum holochain_types::app::CellProvisioning [−][src]
pub enum CellProvisioning {
Create {
deferred: bool,
},
CreateClone {
deferred: bool,
},
UseExisting {
deferred: bool,
},
CreateIfNotExists {
deferred: bool,
},
Disabled,
}
Expand description
Rules to determine if and how a Cell will be created for this Dna
Variants
Create
Fields
deferred: bool
Always create a new Cell when installing this App
CreateClone
Fields
deferred: bool
Always create a new Cell when installing the App, and use a unique UID to ensure a distinct DHT network
UseExisting
Fields
deferred: bool
Require that a Cell is already installed which matches the DNA version spec, and which has an Agent that’s associated with this App’s agent via DPKI. If no such Cell exists, app installation fails.
CreateIfNotExists
Fields
deferred: bool
Try UseExisting
, and if that fails, fallback to Create
Disabled
Disallow provisioning altogether. In this case, we expect
clone_limit > 0
: otherwise, no Cells will ever be created.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CellProvisioning
impl Send for CellProvisioning
impl Sync for CellProvisioning
impl Unpin for CellProvisioning
impl UnwindSafe for CellProvisioning
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more