pub enum NotificationEvent {
Notification {
identity: NotificationIdentity,
sequence: u64,
notification: SQLNotification,
},
ResyncRequired {
identity: NotificationIdentity,
cause: NotificationFailureKind,
},
Reconnected {
identity: NotificationIdentity,
},
}Expand description
An ordered subscription observation, including any loss of continuity.
Readiness precedes the first event. ResyncRequired names the old identity and precedes replacement data; Reconnected names the new ready identity. Embedded listeners do not reconnect implicitly. Channel and payload content is omitted from Debug; applications access it explicitly through the notification value.
Variants§
Notification
Fields
§
identity: NotificationIdentity§
sequence: u64Positive, contiguous counter within identity.epoch, starting at one. JavaScript adapters must preserve this exact integer as bigint.
§
notification: SQLNotificationResyncRequired
Reconnected
Fields
§
identity: NotificationIdentityTrait Implementations§
Source§impl Clone for NotificationEvent
impl Clone for NotificationEvent
Source§impl Debug for NotificationEvent
impl Debug for NotificationEvent
impl Eq for NotificationEvent
Source§impl PartialEq for NotificationEvent
impl PartialEq for NotificationEvent
impl StructuralPartialEq for NotificationEvent
Auto Trait Implementations§
impl Freeze for NotificationEvent
impl RefUnwindSafe for NotificationEvent
impl Send for NotificationEvent
impl Sync for NotificationEvent
impl Unpin for NotificationEvent
impl UnsafeUnpin for NotificationEvent
impl UnwindSafe for NotificationEvent
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