[][src]Enum oasis_client::api::Event

pub enum Event {
    Error {
        id: u64,
        error_code: i32,
        description: String,
    },
    ExecuteService {
        id: u64,
        address: String,
        output: String,
    },
    DeployService {
        id: u64,
        address: String,
    },
}

Structure of events that can be returned from the server.

Variants

Error

The event as a result of a request that has failed.

Fields of Error

id: u64

Identifier of the asynchronous response.

error_code: i32

Numeric representation fo the error.

description: String

Description of the error.

ExecuteService

The event as a result of an asynchronous service request that has succeeded.

Fields of ExecuteService

id: u64

Identifier of the asynchronous response.

address: String

Hex-encoded address of the service that emitted the event.

output: String

Output generated by the service at the end of its execution.

DeployService

The event as a result of an asynchronous service request that has succeeded.

Fields of DeployService

id: u64

Identifier of the asynchronous response.

address: String

Hex-encoded address of the deployed service.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

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

impl Serialize for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?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: Deserialize<'de>, 
[src]

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

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

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,