Struct async_jsonrpc_client::SubscriptionNotificationParams[][src]

pub struct SubscriptionNotificationParams<T = Value> {
    pub subscription: Id,
    pub result: T,
}

Parameters of the subscription notification.

Fields

subscription: Id

Subscription id, as communicated during the subscription.

result: T

Actual data that the server wants to communicate to the client.

Implementations

impl<T> SubscriptionNotificationParams<T> where
    T: DeserializeOwned + Serialize
[src]

pub fn new(id: Id, result: T) -> SubscriptionNotificationParams<T>[src]

Creates a JSON-RPC 2.0 notification parameter.

Trait Implementations

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

impl<T> Debug for SubscriptionNotificationParams<T> where
    T: Debug
[src]

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

impl<T> Eq for SubscriptionNotificationParams<T> where
    T: Eq
[src]

impl<T> PartialEq<SubscriptionNotificationParams<T>> for SubscriptionNotificationParams<T> where
    T: PartialEq<T>, 
[src]

impl<T> Serialize for SubscriptionNotificationParams<T> where
    T: Serialize
[src]

impl<T> StructuralEq for SubscriptionNotificationParams<T>[src]

impl<T> StructuralPartialEq for SubscriptionNotificationParams<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SubscriptionNotificationParams<T> where
    T: RefUnwindSafe

impl<T> Send for SubscriptionNotificationParams<T> where
    T: Send

impl<T> Sync for SubscriptionNotificationParams<T> where
    T: Sync

impl<T> Unpin for SubscriptionNotificationParams<T> where
    T: Unpin

impl<T> UnwindSafe for SubscriptionNotificationParams<T> where
    T: UnwindSafe

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: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> 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> Same<T> for T

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