pub fn send(&self, event: EventSubset) -> Result<(), EventSenderError<Category, EventSubset>> {
        if let Err(error) = self.event_tx.send(event) {
            return Err(EventSenderError::EventSubset(error));
        }
        if let Err(error) = self.event_category_tx.send(self.event_category.clone()) {
            return Err(EventSenderError::Category(error));
        }

        Ok(())
    }
/// Fire an allowed event/signal to the observer.
Fire an allowed event/signal to the observer.
Fire an allowed event / signal to the observer .
pub fn send(&self, event: EventSubset) -> Result<(), EventSenderError<Category, EventSubset>> {
        if let Err(error) = self.event_tx.send(event) {
            return Err(EventSenderError::EventSubset(error));
        }
        if let Err(error) = self.event_category_tx.send(self.event_category.clone()) {
            return Err(EventSenderError::Category(error));
        }
        Ok(())
    }
pub fn send ( & self , event : EventSubset ) -> Result < ( ) , EventSenderError < Category , EventSubset > > { if let Err ( error ) = self . event_tx . send ( event ) { return Err ( EventSenderError :: EventSubset ( error ) ) ; } if let Err ( error ) = self . event_category_tx . send ( self . event_category . clone ( ) ) { return Err ( EventSenderError :: Category ( error ) ) ; } Ok ( ( ) ) }
Fire an allowed event/signal to the observer.
Fire an allowed event / signal to the observer .
&self
event
EventSubset
&self
event
EventSubset