Type Alias jsonrpsee_types::response::SubscriptionError

source ·
pub type SubscriptionError<'a, T> = Notification<'a, SubscriptionPayloadError<'a, T>>;
Expand description

Subscription response object, embedding a SubscriptionPayload in the params member along with error field.

Aliased Type§

struct SubscriptionError<'a, T> {
    pub jsonrpc: TwoPointZero,
    pub method: Cow<'a, str>,
    pub params: SubscriptionPayloadError<'a, T>,
}

Fields§

§jsonrpc: TwoPointZero

JSON-RPC version.

§method: Cow<'a, str>

Name of the method to be invoked.

§params: SubscriptionPayloadError<'a, T>

Parameter values of the request.

Implementations

source§

impl<'a, T> Notification<'a, T>

source

pub fn new(method: Cow<'a, str>, params: T) -> Self

Create a new Notification.

Trait Implementations

source§

impl<'a, T: Clone> Clone for Notification<'a, T>

source§

fn clone(&self) -> Notification<'a, T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, T: Debug> Debug for Notification<'a, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de: 'a, 'a, T> Deserialize<'de> for Notification<'a, T>
where T: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'a, T> Serialize for Notification<'a, T>
where T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more