Struct async_jsonrpc_client::SubscriptionNotification [−][src]
Server notification about something the client is subscribed to.
Fields
jsonrpc: Version
A String specifying the version of the JSON-RPC protocol.
method: String
A String containing the name of the method that was used for the subscription.
params: SubscriptionNotificationParams<T>
Parameters of the subscription notification.
Implementations
impl<T> SubscriptionNotification<T> where
T: DeserializeOwned + Serialize,
[src]
T: DeserializeOwned + Serialize,
pub fn new<M>(
method: M,
params: SubscriptionNotificationParams<T>
) -> SubscriptionNotification<T> where
M: Into<String>,
[src]
method: M,
params: SubscriptionNotificationParams<T>
) -> SubscriptionNotification<T> where
M: Into<String>,
Creates a JSON-RPC 2.0 notification which is a subscription notification.
Trait Implementations
impl<T> Clone for SubscriptionNotification<T> where
T: Clone,
[src]
T: Clone,
pub fn clone(&self) -> SubscriptionNotification<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for SubscriptionNotification<T> where
T: Debug,
[src]
T: Debug,
impl<'de, T> Deserialize<'de> for SubscriptionNotification<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SubscriptionNotification<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<SubscriptionNotification<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> Display for SubscriptionNotification<T> where
T: Serialize,
[src]
T: Serialize,
impl<T> Eq for SubscriptionNotification<T> where
T: Eq,
[src]
T: Eq,
impl<T> PartialEq<SubscriptionNotification<T>> for SubscriptionNotification<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
pub fn eq(&self, other: &SubscriptionNotification<T>) -> bool
[src]
pub fn ne(&self, other: &SubscriptionNotification<T>) -> bool
[src]
impl<T> Serialize for SubscriptionNotification<T> where
T: Serialize,
[src]
T: Serialize,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T> StructuralEq for SubscriptionNotification<T>
[src]
impl<T> StructuralPartialEq for SubscriptionNotification<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for SubscriptionNotification<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for SubscriptionNotification<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for SubscriptionNotification<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for SubscriptionNotification<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for SubscriptionNotification<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,