pub fn delete_timer(&mut self, name: &str) -> Result<(), Error> {
            if self.timers.contains_key(name) {
                self.timers.remove(name);
                Ok(())
            } else {
                Err(Error::TimerAlreadyExists)
            }
        }
/// Delete a timer from the list of known timers
Delete a timer from the list of known timers
Delete a timer from the list of known timers
pub fn delete_timer(&mut self, name: &str) -> Result<(), Error> {
            if self.timers.contains_key(name) {
                self.timers.remove(name);
                Ok(())
            } else {
                Err(Error::TimerAlreadyExists)
            }
        }
pub fn delete_timer ( & mut self , name : & str ) -> Result < ( ) , Error > { if self . timers . contains_key ( name ) { self . timers . remove ( name ) ; Ok ( ( ) ) } else { Err ( Error :: TimerAlreadyExists ) } }
Delete a timer from the list of known timers
Delete a timer from the list of known timers
&mut self
name
&str
&mut self
name
&str