Enum holochain_client::AppRequest
source · pub enum AppRequest {
AppInfo {
installed_app_id: String,
},
CallZome(Box<ZomeCall, Global>),
CreateCloneCell(Box<CreateCloneCellPayload, Global>),
DisableCloneCell(Box<DisableCloneCellPayload, Global>),
EnableCloneCell(Box<DisableCloneCellPayload, Global>),
NetworkInfo(Box<NetworkInfoRequestPayload, Global>),
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, Global>)
CreateCloneCell(Box<CreateCloneCellPayload, Global>)
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, Global>)
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, Global>)
NetworkInfo(Box<NetworkInfoRequestPayload, Global>)
Info about networking processes
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§
§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>
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.