[][src]Enum kayrx::jrpc::raw::RawClientEvent

pub enum RawClientEvent {
    Response {
        request_id: RawClientRequestId,
        result: Result<JsonValue, Error>,
    },
    SubscriptionResponse {
        request_id: RawClientRequestId,
        result: Result<(), Error>,
    },
    SubscriptionNotif {
        request_id: RawClientRequestId,
        result: JsonValue,
    },
    Unsubscribed {
        request_id: RawClientRequestId,
    },
}

Event returned by RawClient::next_event.

Variants

Response

A request has received a response.

Fields of Response

request_id: RawClientRequestId

Identifier of the request. Can be matched with the value that RawClient::start_request has returned.

result: Result<JsonValue, Error>

The response itself.

SubscriptionResponse

A subscription request has received a response.

Fields of SubscriptionResponse

request_id: RawClientRequestId

Identifier of the request. Can be matched with the value that RawClient::start_subscription has returned.

result: Result<(), Error>

On success, we are now actively subscribed. SubscriptionNotif events will now be generated.

SubscriptionNotif

Notification about something we are subscribed to.

Fields of SubscriptionNotif

request_id: RawClientRequestId

Identifier of the request. Can be matched with the value that RawClient::start_subscription has returned.

result: JsonValue

Opaque data that the server wants to communicate to us.

Unsubscribed

Finished closing a subscription.

Fields of Unsubscribed

request_id: RawClientRequestId

Subscription that has been closed.

Trait Implementations

impl Debug for RawClientEvent[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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>,