[][src]Trait rubbl_core::notify::NotificationBackend

pub trait NotificationBackend {
    fn notify(
        &mut self,
        kind: NotificationKind,
        args: Arguments<'_>,
        err: Option<Error>
    ); }

Trait for type that handle notifications to the user.

Required methods

fn notify(
    &mut self,
    kind: NotificationKind,
    args: Arguments<'_>,
    err: Option<Error>
)

Notify the user about an event.

If err is not None, the information contained in the object should be reported after the main message.

Loading content...

Implementors

impl NotificationBackend for BufferingNotificationBackend[src]

impl NotificationBackend for NoopNotificationBackend[src]

impl NotificationBackend for TermcolorNotificationBackend[src]

Loading content...