Enum holochain::conductor::api::AppRequest
source · pub enum AppRequest {
AppInfo {
installed_app_id: String,
},
ZomeCall(Box<ZomeCall, Global>),
CreateCloneCell(Box<CreateCloneCellPayload, Global>),
ArchiveCloneCell(Box<ArchiveCloneCellPayload, Global>),
GossipInfo(Box<GossipInfoRequestPayload, Global>),
ZomeCallInvocation(Box<ZomeCall, Global>),
Crypto(Box<CryptoRequest, Global>),
SignalSubscription(SignalSubscription),
}
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
Fields
installed_app_id: String
The app ID for which to get information
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
ZomeCall(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
ArchiveCloneCell(Box<ArchiveCloneCellPayload, Global>)
Archive a clone cell.
Providing a CloneId
or CellId
, archive an existing clone cell.
When the clone cell exists, it is archived and can not be called any
longer. If it doesn’t exist, the call is a no-op.
Returns
AppResponse::CloneCellArchived
if the clone cell existed
and was archived.
GossipInfo(Box<GossipInfoRequestPayload, Global>)
Info about gossip
ZomeCallInvocation(Box<ZomeCall, Global>)
Crypto(Box<CryptoRequest, Global>)
Is currently unimplemented and will return
an AppResponse::Unimplemented
.
SignalSubscription(SignalSubscription)
Is currently unimplemented and will return
an AppResponse::Unimplemented
.
Trait Implementations
sourceimpl Clone for AppRequest
impl Clone for AppRequest
sourcefn clone(&self) -> AppRequest
fn clone(&self) -> AppRequest
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for AppRequest
impl Debug for AppRequest
sourceimpl<'de> Deserialize<'de> for AppRequest
impl<'de> Deserialize<'de> for AppRequest
sourcefn 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>,
sourceimpl Serialize for AppRequest
impl Serialize for AppRequest
sourcefn 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,
sourceimpl TryFrom<&AppRequest> for SerializedBytes
impl TryFrom<&AppRequest> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
sourcefn try_from(t: &AppRequest) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &AppRequest) -> Result<SerializedBytes, SerializedBytesError>
sourceimpl TryFrom<AppRequest> for SerializedBytes
impl TryFrom<AppRequest> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
sourcefn try_from(t: AppRequest) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: AppRequest) -> Result<SerializedBytes, SerializedBytesError>
sourceimpl TryFrom<SerializedBytes> for AppRequest
impl TryFrom<SerializedBytes> for AppRequest
type Error = SerializedBytesError
type Error = SerializedBytesError
sourcefn 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> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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> ⓘ
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
sourcefn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
sourcefn 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 morefn 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.