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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for AppResponse
impl Serialize for AppResponse
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 Freeze for AppResponse
impl RefUnwindSafe for AppResponse
impl Send for AppResponse
impl Sync for AppResponse
impl Unpin for AppResponse
impl UnwindSafe for AppResponse
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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>
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> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moresource§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).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.