Enum holochain_client::AppResponse
source · pub enum AppResponse {
Error(ExternalApiWireError),
AppInfo(Option<AppInfo>),
ZomeCalled(Box<ExternIO>),
CloneCellCreated(ClonedCell),
CloneCellDisabled,
CloneCellEnabled(ClonedCell),
NetworkInfo(Vec<NetworkInfo>),
ListWasmHostFunctions(Vec<String>),
}
Expand description
Represents the possible responses to an AppRequest
.
Variants§
Error(ExternalApiWireError)
Can occur in response to any AppRequest
.
There has been an error during the handling of the request.
AppInfo(Option<AppInfo>)
The succesful response to an AppRequest::AppInfo
.
Option will be None
if there is no installed app with the given installed_app_id
.
ZomeCalled(Box<ExternIO>)
The successful response to an AppRequest::CallZome
.
Note that [ExternIO
] is simply a structure of SerializedBytes
, so the client will have
to decode this response back into the data provided by the zome using a msgpack library to utilize it.
CloneCellCreated(ClonedCell)
The successful response to an AppRequest::CreateCloneCell
.
The response contains the created clone ClonedCell
.
CloneCellDisabled
The successful response to an AppRequest::DisableCloneCell
.
An existing clone cell has been disabled.
CloneCellEnabled(ClonedCell)
The successful response to an AppRequest::EnableCloneCell
.
A previously disabled clone cell has been enabled. The ClonedCell
is returned.
NetworkInfo(Vec<NetworkInfo>)
NetworkInfo is returned
ListWasmHostFunctions(Vec<String>)
All the wasm host functions supported by this conductor.
Trait Implementations§
source§impl Clone for AppResponse
impl Clone for AppResponse
source§fn clone(&self) -> AppResponse
fn clone(&self) -> AppResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AppResponse
impl Debug for AppResponse
source§impl<'de> Deserialize<'de> for AppResponse
impl<'de> Deserialize<'de> for AppResponse
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AppResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AppResponse, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl Serialize for AppResponse
impl Serialize for AppResponse
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<&AppResponse> for SerializedBytes
impl TryFrom<&AppResponse> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(t: &AppResponse) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &AppResponse) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<AppResponse> for SerializedBytes
impl TryFrom<AppResponse> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(t: AppResponse) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: AppResponse) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<SerializedBytes> for AppResponse
impl TryFrom<SerializedBytes> for AppResponse
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(sb: SerializedBytes) -> Result<AppResponse, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<AppResponse, SerializedBytesError>
Auto Trait Implementations§
impl RefUnwindSafe for AppResponse
impl Send for AppResponse
impl Sync for AppResponse
impl Unpin for AppResponse
impl UnwindSafe for AppResponse
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>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§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>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.