pub struct NotificationInner<T, I> {
pub sub_id: I,
pub payload: NotificationPayload<T>,
}
Expand description
The notification
This is the notification that is sent to the client when an event matches a subscription
Fields§
§sub_id: I
The subscription ID
payload: NotificationPayload<T>
The notification payload
Trait Implementations§
Source§impl<T, I> Clone for NotificationInner<T, I>
impl<T, I> Clone for NotificationInner<T, I>
Source§fn clone(&self) -> NotificationInner<T, I>
fn clone(&self) -> NotificationInner<T, I>
Returns a duplicate 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, I> Debug for NotificationInner<T, I>
impl<T, I> Debug for NotificationInner<T, I>
Source§impl<'de, T, I> Deserialize<'de> for NotificationInner<T, I>
impl<'de, T, I> Deserialize<'de> for NotificationInner<T, I>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationInner<T, I>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationInner<T, I>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, I> Serialize for NotificationInner<T, I>
impl<T, I> Serialize for NotificationInner<T, I>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<T, I> Freeze for NotificationInner<T, I>
impl<T, I> RefUnwindSafe for NotificationInner<T, I>where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for NotificationInner<T, I>
impl<T, I> Sync for NotificationInner<T, I>
impl<T, I> Unpin for NotificationInner<T, I>
impl<T, I> UnwindSafe for NotificationInner<T, I>where
I: UnwindSafe,
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