pub enum AppResponse {
Error(ExternalApiWireError),
AppInfo(Option<AppInfo>),
AgentInfo(Vec<String>),
ZomeCalled(Box<ExternIO>),
CloneCellCreated(ClonedCell),
CloneCellDisabled,
CloneCellEnabled(ClonedCell),
NetworkMetricsDumped(HashMap<DnaHash, Kitsune2NetworkMetrics>),
NetworkStatsDumped(TransportStats),
ListWasmHostFunctions(Vec<String>),
Ok,
}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 successful response to an AppRequest::AppInfo.
Option will be None if there is no installed app with the given installed_app_id.
AgentInfo(Vec<String>)
The successful response to an AppRequest::AgentInfo.
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.
NetworkMetricsDumped(HashMap<DnaHash, Kitsune2NetworkMetrics>)
The successful result of a call to AppRequest::DumpNetworkMetrics.
NetworkStatsDumped(TransportStats)
The successful result of a call to AppRequest::DumpNetworkStats.
ListWasmHostFunctions(Vec<String>)
All the wasm host functions supported by this conductor.
Ok
Operation successful, no payload.
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
Source§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
Source§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
Source§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> 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more