We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PgNotification
1 parent 4249cb4 commit b27b49dCopy full SHA for b27b49d
sqlx-postgres/src/listener.rs
@@ -36,6 +36,7 @@ pub struct PgListener {
36
}
37
38
/// An asynchronous notification from Postgres.
39
+#[derive(Clone)]
40
pub struct PgNotification(Notification);
41
42
impl PgListener {
sqlx-postgres/src/message/notification.rs
@@ -4,7 +4,7 @@ use crate::error::Error;
4
use crate::io::BufExt;
5
use crate::message::{BackendMessage, BackendMessageFormat};
6
7
-#[derive(Debug)]
+#[derive(Debug, Clone)]
8
pub struct Notification {
9
pub(crate) process_id: u32,
10
pub(crate) channel: Bytes,
0 commit comments