pub struct Conductor {
    pub config: ConductorConfig,
    /* private fields */
}
Expand description

A Conductor is a group of Cells

Fields§

§config: ConductorConfig

The config used to create this Conductor

Implementations§

Methods used by the ConductorHandle

A gate to put at the top of public functions to ensure that work is not attempted after a shutdown has been issued

Take ownership of the TaskManagerClient as well as the task which completes when all managed tasks have completed

Broadcasts the shutdown signal to all managed tasks and returns a future to await for shutdown to complete.

Spawn a new app interface task, register it with the TaskManager, and modify the conductor accordingly, based on the config passed in which is just a networking port number (or 0 to auto-select one). Returns the given or auto-chosen port number if giving an Ok Result

Returns a port which is guaranteed to have a websocket listener with an Admin interface on it. Useful for specifying port 0 and letting the OS choose a free port.

Give a list of networking ports taken up as running app interface tasks

Get the list of hashes of installed Dnas in this Conductor

Get a DnaDef from the RibosomeStore

Get a DnaFile from the RibosomeStore

source

pub fn get_entry_def(&self, key: &EntryDefBufferKey) -> Option<EntryDef>

Get an EntryDef from the EntryDefBufferKey

Create a hash map of all existing DNA definitions, mapped to cell ids.

Get the root environment directory.

Get the keystore.

Get a reference to the conductor’s HolochainP2p.

Install a DnaFile in this Conductor

Get signed agent info from the conductor

Invoke a zome function on a Cell

Install DNAs and set up Cells as specified by an AppBundle

Uninstall an app

List active AppIds

List Apps with their information

Get the IDs of all active installed Apps which use this Cell

Find the ID of the first active installed App which uses this Cell

Get the IDs of all active installed Apps which use this Dna

Get info about an installed App, regardless of status

Iterator over only the cells which are fully running. Generally used to handle conductor interface requests

List CellIds for Cells which match a status filter

Create a new cell in an existing app based on an existing DNA.

Returns

A struct with the created cell’s clone id and cell id.

Enable a disabled clone cell.

Adjust which cells are present in the Conductor (adding and removing as needed) to match the current reality of all app statuses.

  • If a Cell is used by at least one Running app, then ensure it is added
  • If a Cell is used by no running apps, then ensure it is removed.

Enable an app

Disable an app

Start an app

Pause an app

Grant a zome call capability for a cell

Create a JSON dump of the cell’s state

Create a comprehensive structured dump of a cell’s state

JSON dump of network metrics

Add signed agent info to the conductor

Inject records into a source chain for a cell. If the records form a chain segment that can be “grafted” onto the existing chain, it will be. Otherwise, a new chain will be formed using the specified records.

Update coordinator zomes on an existing dna.

Access to the signal broadcast channel, to create new subscriptions

Get the post commit sender.

Get the conductor config

Get a TaskManagerClient

Create a conductor builder

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
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
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type for metadata in pointers and references to Self.
Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
upcast ref
upcast mut ref
upcast boxed dyn
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