Enum holochain_client::AdminResponse
source · pub enum AdminResponse {
Show 25 variants
Error(ExternalApiWireError),
DnaRegistered(HoloHash<Dna>),
DnaDefinitionReturned(DnaDef),
CoordinatorsUpdated,
AppInstalled(AppInfo),
AppUninstalled,
AdminInterfacesAdded,
AgentPubKeyGenerated(HoloHash<Agent>),
DnasListed(Vec<HoloHash<Dna>, Global>),
CellIdsListed(Vec<CellId, Global>),
AppsListed(Vec<AppInfo, Global>),
AppInterfaceAttached {
port: u16,
},
AppInterfacesListed(Vec<u16, Global>),
AppEnabled {
app: AppInfo,
errors: Vec<(CellId, String), Global>,
},
AppDisabled,
StateDumped(String),
FullStateDumped(FullStateDump),
NetworkMetricsDumped(String),
NetworkStatsDumped(String),
AgentInfoAdded,
AgentInfo(Vec<AgentInfoSigned, Global>),
RecordsGrafted,
ZomeCallCapabilityGranted,
CloneCellDeleted,
StorageInfo(StorageInfo),
}
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(HoloHash<Dna>)
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 RoleName
s and, most usefully, CellInfo
s
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 AdminInterface
s have successfully been added.
AgentPubKeyGenerated(HoloHash<Agent>)
The successful response to an AdminRequest::GenerateAgentPubKey
.
Contains a new AgentPubKey
generated by the keystore.
DnasListed(Vec<HoloHash<Dna>, Global>)
The successful response to an AdminRequest::ListDnas
.
Contains a list of the hashes of all installed DNAs.
CellIdsListed(Vec<CellId, Global>)
The successful response to an AdminRequest::ListCellIds
.
Contains a list of all the cell IDs in the conductor.
AppsListed(Vec<AppInfo, Global>)
The successful response to an AdminRequest::ListApps
.
Contains a list of the InstalledAppInfo
of the installed apps in the conductor.
AppInterfaceAttached
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, Global>)
The list of attached app interfaces.
AppEnabled
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.
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.
NetworkStatsDumped(String)
The successful result of a call to AdminRequest::DumpNetworkStats
.
The string is a raw JSON blob returned directly from the backend networking library.
AgentInfoAdded
The successful response to an AdminRequest::AddAgentInfo
.
This means the agent info was successfully added to the peer store.
AgentInfo(Vec<AgentInfoSigned, Global>)
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
.
StorageInfo(StorageInfo)
The successful response to an AdminRequest::StorageInfo
.
Trait Implementations§
source§impl Debug for AdminResponse
impl Debug for AdminResponse
source§impl<'de> Deserialize<'de> for AdminResponse
impl<'de> Deserialize<'de> for AdminResponse
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AdminResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AdminResponse, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl Serialize for AdminResponse
impl Serialize for AdminResponse
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
source§impl TryFrom<&AdminResponse> for SerializedBytes
impl TryFrom<&AdminResponse> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(t: &AdminResponse) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &AdminResponse) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<AdminResponse> for SerializedBytes
impl TryFrom<AdminResponse> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(t: AdminResponse) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: AdminResponse) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<SerializedBytes> for AdminResponse
impl TryFrom<SerializedBytes> for AdminResponse
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(sb: SerializedBytes) -> Result<AdminResponse, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<AdminResponse, SerializedBytesError>
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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.