Enum holochain_conductor_api::AdminResponse [−][src]
pub enum AdminResponse {}Show variants
Error(ExternalApiWireError), DnaRegistered(DnaHash), AppInstalled(InstalledAppInfo), AppBundleInstalled(InstalledAppInfo), CloneCellCreated(CellId), AdminInterfacesAdded, AgentPubKeyGenerated(AgentPubKey), DnasListed(Vec<DnaHash>), CellIdsListed(Vec<CellId>), ActiveAppsListed(Vec<InstalledAppId>), AppsListed(Vec<InstalledAppInfo>), AppInterfaceAttached { port: u16, }, AppInterfacesListed(Vec<u16>), AppActivated(InstalledAppInfo), AppDeactivated, StateDumped(String), AgentInfoAdded, AgentInfoRequested(Vec<AgentInfoSigned>),
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.
See ExternalApiWireError
for variants.
DnaRegistered(DnaHash)
The successful response to an AdminRequest::RegisterDna
AppInstalled(InstalledAppInfo)
The successful response to an AdminRequest::InstallApp
.
The resulting InstalledAppInfo
contains the App id,
the CellNick
s and, most usefully, the new CellId
s
of the newly installed Dna
s. See the InstalledAppInfo
docs for details.
AppBundleInstalled(InstalledAppInfo)
The successful response to an AdminRequest::InstallAppBundle
.
The resulting InstalledAppInfo
contains the App id,
the CellNick
s and, most usefully, the new CellId
s
of the newly installed Dna
s. See the InstalledAppInfo
docs for details.
CloneCellCreated(CellId)
The successful response to an AdminRequest::CreateCloneCell
.
The response contains the CellId
of the newly created clone.
The succesful response to an AdminRequest::AddAdminInterfaces
.
It means the AdminInterface
s have successfully been added
AgentPubKeyGenerated(AgentPubKey)
The succesful response to an AdminRequest::GenerateAgentPubKey
.
Contains a new AgentPubKey
generated by the Keystore
The successful response to an AdminRequest::ListDnas
.
Contains a list of the hashes of all installed Dna
s
The succesful response to an AdminRequest::ListCellIds
.
Contains a list of all the Cell
ids in the conductor
ActiveAppsListed(Vec<InstalledAppId>)
The succesful response to an AdminRequest::ListActiveApps
.
Contains a list of all the active App
ids in the conductor
AppsListed(Vec<InstalledAppInfo>)
The succesful response to an AdminRequest::ListApps
.
Contains a list of the InstalledAppInfo
of the installed Apps
in the conductor
The succesful response to an AdminRequest::AttachAppInterface
.
AppInterfaceApi
successfully attached.
Contains the port number that was selected (if not specified) by Holochain
for running this App interface
Show fields
Fields of AppInterfaceAttached
port: u16
Networking port of the new AppInterfaceApi
The list of attached app interfaces.
AppActivated(InstalledAppInfo)
The succesful response to an AdminRequest::ActivateApp
.
It means the App
was activated successfully
The succesful response to an AdminRequest::DeactivateApp
.
It means the App
was deactivated successfully.
StateDumped(String)
The succesful 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.
The succesful response to an AdminRequest::AddAgentInfo
.
This means the agent info was successfully added to the peer store.
AgentInfoRequested(Vec<AgentInfoSigned>)
The succesful response to an AdminRequest::RequestAgentInfo
.
This is all the agent info that was found for the request.
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
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AdminResponse
impl Send for AdminResponse
impl Sync for AdminResponse
impl Unpin for AdminResponse
impl UnwindSafe for AdminResponse
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
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
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