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>
impl<'a, T> Notification<'a, T>
sourcepub fn new(method: Cow<'a, str>, params: T) -> Self
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>
impl<'a, T: Clone> Clone for Notification<'a, T>
source§fn clone(&self) -> Notification<'a, T>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, T: Debug> Debug for Notification<'a, T>
impl<'a, T: Debug> Debug for Notification<'a, T>
source§impl<'de: 'a, 'a, T> Deserialize<'de> for Notification<'a, T>where
T: Deserialize<'de>,
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>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more