pub fn emit(&self, signal: T) -> Result<(), SignalError<T>> {
        if self.senders.is_empty() {
            return Err(SignalError::NotConnected);
        }
        let mut err: Option<SignalError<T>> = None;
        for sender in &self.senders {
            match sender.send(signal) {
                Ok(_) => (),
                Err(x) => err = Some(SignalError::SendError(x))
            }
        }
        if let Some(x) = err {
            return Err(x);
        }
        Ok(())
    }
///
///Emits the given signal to all of the connected Slots
///
///May return a SignalError if the Signal is not connected to any Slots
///or an error occured when sending to any Slot. If an error occurs when
///sending to a Slot, all Slots will still be sent to and only the most
///recent error will be returned.
///
/// # Arguments
/// * 'signal' - The signal to be emitted
///
/// # Returns
/// * success - Ok(())
/// * failure - SignalError
///
Emits the given signal to all of the connected Slots
May return a SignalError if the Signal is not connected to any Slots
or an error occured when sending to any Slot. If an error occurs when
sending to a Slot, all Slots will still be sent to and only the most
recent error will be returned.

Arguments
'signal' - The signal to be emitted

Returns
success - Ok(())
failure - SignalError
Emits the given signal to all of the connected Slots May return a SignalError if the Signal is not connected to any Slots or an error occured when sending to any Slot . If an error occurs when sending to a Slot all Slots will still be sent to and only the most recent error will be returned . Arguments ' signal ' - The signal to be emitted Returns success - Ok (( )) failure - SignalError
pub fn emit(&self, signal: T) -> Result<(), SignalError<T>> {
        if self.senders.is_empty() {
            return Err(SignalError::NotConnected);
        }
        let mut err: Option<SignalError<T>> = None;
        for sender in &self.senders {
            match sender.send(signal) {
                Ok(_) => (),
                Err(x) => err = Some(SignalError::SendError(x))
            }
        }
        if let Some(x) = err {
            return Err(x);
        }
        Ok(())
    }
pub fn emit ( & self , signal : T ) -> Result < ( ) , SignalError < T > > { if self . senders . is_empty ( ) { return Err ( SignalError :: NotConnected ) ; } let mut err : Option < SignalError < T > > = None ; for sender in & self . senders { match sender . send ( signal ) { Ok ( _ ) => ( ) , Err ( x ) => err = Some ( SignalError :: SendError ( x ) ) } } if let Some ( x ) = err { return Err ( x ) ; } Ok ( ( ) ) }
Emits the given signal to all of the connected Slots
May return a SignalError if the Signal is not connected to any Slots
or an error occured when sending to any Slot.
Emits the given signal to all of the connected Slots May return a SignalError if the Signal is not connected to any Slots or an error occured when sending to any Slot .
&self
signal
T
&self
signal
T