[][src]Enum holochain_conductor_api::AppResponse

pub enum AppResponse {
    Unimplemented(AppRequest),
    Error(ExternalApiWireError),
    AppInfo(Option<InstalledApp>),
    ZomeCall(Box<ExternIO>),
    ZomeCallInvocation(Box<ExternIO>),
}

Responses to requests received on an App interface

Variants

Unimplemented(AppRequest)

This request/response is unimplemented

Error(ExternalApiWireError)

Can occur in response to any AppRequest.

There has been an error during the handling of the request. See ExternalApiWireError for variants.

AppInfo(Option<InstalledApp>)

The succesful response to an AppRequest::AppInfo.

Option will be None if there is no installed app with the given installed_app_id value from the request. Check out InstalledApp for details on when the Option is Some<InstalledApp>

ZomeCall(Box<ExternIO>)

The successful response to an AppRequest::ZomeCall.

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.

ZomeCallInvocation(Box<ExternIO>)

DEPRECATED. See ZomeCall.

Trait Implementations

impl Clone for AppResponse[src]

impl Debug for AppResponse[src]

impl<'de> Deserialize<'de> for AppResponse[src]

impl Serialize for AppResponse[src]

impl<'_> TryFrom<&'_ AppResponse> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<AppResponse> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<SerializedBytes> for AppResponse[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for AppResponse

impl Send for AppResponse

impl Sync for AppResponse

impl Unpin for AppResponse

impl UnwindSafe for AppResponse

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]