pub trait StatementNotifications {
// Required methods
fn notify(&self, channel: &str, payload: &str) -> Result<(), SQLError>;
fn listen(&self, channel: &str) -> Result<(), SQLError>;
fn unlisten(&self, channel: Option<&str>) -> Result<(), SQLError>;
// Provided method
fn notification_subscriptions_required(&self) -> bool { ... }
}Required Methods§
fn notify(&self, channel: &str, payload: &str) -> Result<(), SQLError>
fn listen(&self, channel: &str) -> Result<(), SQLError>
fn unlisten(&self, channel: Option<&str>) -> Result<(), SQLError>
Provided Methods§
fn notification_subscriptions_required(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".