Enum holochain::conductor::api::AppRequest
source · pub enum AppRequest {
AppInfo {
installed_app_id: String,
},
CallZome(Box<ZomeCall>),
CreateCloneCell(Box<CreateCloneCellPayload>),
DisableCloneCell(Box<DisableCloneCellPayload>),
EnableCloneCell(Box<DisableCloneCellPayload>),
NetworkInfo(Box<NetworkInfoRequestPayload>),
ListWasmHostFunctions,
}
Expand description
Represents the available conductor functions to call over an app interface
and will result in a corresponding AppResponse
message being sent back over the
interface connection.
§Errors
Returns an AppResponse::Error
with a reason why the request failed.
Variants§
AppInfo
Get info about the app identified by the given installed_app_id
argument,
including info about each cell installed by this app.
Requires installed_app_id
, because an app interface can be the interface to multiple
apps at the same time.
§Returns
CallZome(Box<ZomeCall>)
CreateCloneCell(Box<CreateCloneCellPayload>)
Clone a DNA (in the biological sense), thus creating a new Cell
.
Using the provided, already-registered DNA, create a new DNA with a unique ID and the specified properties, create a new cell from this cloned DNA, and add the cell to the specified app.
§Returns
DisableCloneCell(Box<DisableCloneCellPayload>)
Disable a clone cell.
Providing a CloneId
or CellId
, disable an existing clone cell.
When the clone cell exists, it is disabled and can not be called any
longer. If it doesn’t exist, the call is a no-op.
§Returns
AppResponse::CloneCellDisabled
if the clone cell existed
and has been disabled.
EnableCloneCell(Box<DisableCloneCellPayload>)
NetworkInfo(Box<NetworkInfoRequestPayload>)
ListWasmHostFunctions
List all host functions available to wasm on this conductor.
§Returns
Trait Implementations§
source§impl Clone for AppRequest
impl Clone for AppRequest
source§fn clone(&self) -> AppRequest
fn clone(&self) -> AppRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AppRequest
impl Debug for AppRequest
source§impl<'de> Deserialize<'de> for AppRequest
impl<'de> Deserialize<'de> for AppRequest
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AppRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AppRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Serialize for AppRequest
impl Serialize for AppRequest
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<&AppRequest> for SerializedBytes
impl TryFrom<&AppRequest> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(t: &AppRequest) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &AppRequest) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<AppRequest> for SerializedBytes
impl TryFrom<AppRequest> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(t: AppRequest) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: AppRequest) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<SerializedBytes> for AppRequest
impl TryFrom<SerializedBytes> for AppRequest
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(sb: SerializedBytes) -> Result<AppRequest, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<AppRequest, SerializedBytesError>
Auto Trait Implementations§
impl RefUnwindSafe for AppRequest
impl Send for AppRequest
impl Sync for AppRequest
impl Unpin for AppRequest
impl UnwindSafe for AppRequest
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.