pub struct EthNotification<T = Box<RawValue>> {
pub subscription: SubId,
pub result: T,
}
Expand description
An ethereum-style notification, not to be confused with a JSON-RPC notification.
Fields§
§subscription: SubId
The subscription ID.
result: T
The notification payload.
Trait Implementations§
source§impl<T: Clone> Clone for EthNotification<T>
impl<T: Clone> Clone for EthNotification<T>
source§fn clone(&self) -> EthNotification<T>
fn clone(&self) -> EthNotification<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<T: Debug> Debug for EthNotification<T>
impl<T: Debug> Debug for EthNotification<T>
source§impl<'de, T> Deserialize<'de> for EthNotification<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for EthNotification<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
source§impl From<EthNotification> for PubSubItem
impl From<EthNotification> for PubSubItem
source§fn from(notification: EthNotification) -> Self
fn from(notification: EthNotification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for EthNotification<T>where
T: Freeze,
impl<T> RefUnwindSafe for EthNotification<T>where
T: RefUnwindSafe,
impl<T> Send for EthNotification<T>where
T: Send,
impl<T> Sync for EthNotification<T>where
T: Sync,
impl<T> Unpin for EthNotification<T>where
T: Unpin,
impl<T> UnwindSafe for EthNotification<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)