pub fn add_mode(&self, mode: Mode) {
        let mut inner = self.inner.lock().unwrap();
        if inner.modes.iter().all(|&m| m != mode) {
            inner.modes.push(mode);
        }
    }
/// Adds a mode to the list of known modes to this output
Adds a mode to the list of known modes to this output
Adds a mode to the list of known modes to this output
pub fn add_mode(&self, mode: Mode) {
        let mut inner = self.inner.lock().unwrap();
        if inner.modes.iter().all(|&m| m != mode) {
            inner.modes.push(mode);
        }
    }
pub fn add_mode ( & self , mode : Mode ) { let mut inner = self . inner . lock ( ) . unwrap ( ) ; if inner . modes . iter ( ) . all ( | & m | m != mode ) { inner . modes . push ( mode ) ; } }
Adds a mode to the list of known modes to this output
Adds a mode to the list of known modes to this output
&self
mode
Mode
&self
mode
Mode