pub enum AdminResponse {
Show 24 variants Error(ExternalApiWireError), DnaRegistered(DnaHash), DnaDefinitionReturned(DnaDef), CoordinatorsUpdated, AppInstalled(AppInfo), AppUninstalled, AdminInterfacesAdded, AgentPubKeyGenerated(AgentPubKey), DnasListed(Vec<DnaHash>), CellIdsListed(Vec<CellId>), AppsListed(Vec<AppInfo>), AppInterfaceAttached { port: u16, }, AppInterfacesListed(Vec<u16>), AppEnabled { app: AppInfo, errors: Vec<(CellId, String)>, }, AppDisabled, AppStarted(bool), StateDumped(String), FullStateDumped(FullStateDump), NetworkMetricsDumped(String), AgentInfoAdded, AgentInfo(Vec<AgentInfoSigned>), RecordsGrafted, ZomeCallCapabilityGranted, CloneCellDeleted,
}
Expand description

Represents the possible responses to an AdminRequest and follows a general convention of noun_verb as opposed to the verb_noun of AdminRequest.

Will serialize as an object with any contents of the enum on a key data and the enum variant on a key type, e.g. { type: 'app_interface_attached', data: { port: 4000 } }

Variants§

§

Error(ExternalApiWireError)

Can occur in response to any AdminRequest.

There has been an error during the handling of the request.

§

DnaRegistered(DnaHash)

The successful response to an AdminRequest::RegisterDna

§

DnaDefinitionReturned(DnaDef)

The successful response to an AdminRequest::GetDnaDefinition

§

CoordinatorsUpdated

The successful response to an AdminRequest::UpdateCoordinators

§

AppInstalled(AppInfo)

The successful response to an AdminRequest::InstallApp.

The resulting AppInfo contains the app ID, the RoleNames and, most usefully, CellInfos of the newly installed DNAs.

§

AppUninstalled

The successful response to an AdminRequest::UninstallApp.

It means the app was uninstalled successfully.

§

AdminInterfacesAdded

The successful response to an AdminRequest::AddAdminInterfaces.

It means the AdminInterfaces have successfully been added.

§

AgentPubKeyGenerated(AgentPubKey)

The successful response to an AdminRequest::GenerateAgentPubKey.

Contains a new AgentPubKey generated by the keystore.

§

DnasListed(Vec<DnaHash>)

The successful response to an AdminRequest::ListDnas.

Contains a list of the hashes of all installed DNAs.

§

CellIdsListed(Vec<CellId>)

The successful response to an AdminRequest::ListCellIds.

Contains a list of all the cell IDs in the conductor.

§

AppsListed(Vec<AppInfo>)

The successful response to an AdminRequest::ListApps.

Contains a list of the InstalledAppInfo of the installed apps in the conductor.

§

AppInterfaceAttached

Fields

§port: u16

Networking port of the new AppInterfaceApi

The successful response to an AdminRequest::AttachAppInterface.

AppInterfaceApi successfully attached. If no port was specified in the request, contains the port number that was selected by the conductor for running this app interface.

§

AppInterfacesListed(Vec<u16>)

The list of attached app interfaces.

§

AppEnabled

Fields

§app: AppInfo
§errors: Vec<(CellId, String)>

The successful response to an AdminRequest::EnableApp.

It means the app was enabled successfully. If it was possible to put the app in a running state, it will be running, otherwise it will be paused.

§

AppDisabled

The successful response to an AdminRequest::DisableApp.

It means the app was disabled successfully.

§

AppStarted(bool)

The successful response to an AdminRequest::StartApp.

The boolean determines whether or not the app was actually started. If false, it was because the app was in a disabled state, or the app failed to start. TODO: add reason why app couldn’t start

§

StateDumped(String)

The successful response to an AdminRequest::DumpState.

The result contains a string of serialized JSON data which can be deserialized to access the full state dump and inspect the source chain.

§

FullStateDumped(FullStateDump)

The successful response to an AdminRequest::DumpFullState.

The result contains a string of serialized JSON data which can be deserialized to access the full state dump and inspect the source chain.

Note that this result can be very big, as it’s requesting the full database of the cell.

§

NetworkMetricsDumped(String)

The successful result of a call to AdminRequest::DumpNetworkMetrics.

The string is a JSON blob of the metrics results.

§

AgentInfoAdded

The successful response to an AdminRequest::AddAgentInfo.

This means the agent info was successfully added to the peer store.

§

AgentInfo(Vec<AgentInfoSigned>)

The successful response to an AdminRequest::AgentInfo.

This is all the agent info that was found for the request.

§

RecordsGrafted

The successful response to an AdminRequest::GraftRecords.

§

ZomeCallCapabilityGranted

The successful response to an AdminRequest::GrantZomeCallCapability.

§

CloneCellDeleted

The successful response to an AdminRequest::DeleteCloneCell.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more
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.
The type returned in the event of a conversion error.
Performs the conversion.

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