Skip to main content

StatementNotifications

Trait StatementNotifications 

Source
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§

Source

fn notify(&self, channel: &str, payload: &str) -> Result<(), SQLError>

Source

fn listen(&self, channel: &str) -> Result<(), SQLError>

Source

fn unlisten(&self, channel: Option<&str>) -> Result<(), SQLError>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§