[][src]Trait libimagnotification::notificator::Notificator

pub trait Notificator<T> {
    fn notify(&self, item: &T) -> Result<()>;
}

A Notificator provides a function that can be called to notify about a certain object.

TODO

The user of the library does not get access to the notification handle. This is not optimal, but enough for today.

Required methods

fn notify(&self, item: &T) -> Result<()>

Loading content...

Implementors

impl<T> Notificator<T> for OkNotification[src]

fn notify(&self, _: &T) -> Result<()>[src]

A default implementation for all Types that implement Display

impl<T: Debug> Notificator<T> for DebugNotification[src]

fn notify(&self, item: &T) -> Result<()>[src]

A default implementation for all Types that implement Display

impl<T: Display> Notificator<T> for Notification[src]

fn notify(&self, item: &T) -> Result<()>[src]

A default implementation for all Types that implement Display

impl<T: Error> Notificator<T> for ErrorNotification[src]

fn notify(&self, item: &T) -> Result<()>[src]

A default implementation for all Types that implement Display

Loading content...