pub fn output_message(&self, msg: ManagerStatusMessage) -> Result<(), Error> {
        let mut process_opt = self.process.borrow_mut();

        if process_opt.is_none() {
            return Err(Error::new(ErrorKind::Other, "no process running"));
        }

        let process = process_opt.as_mut().unwrap();

        match msg {
            ManagerStatusMessage::Log(l) =>
                match self.description.format {
                    LoggerFormat::TSV => self.tsv_write(l, process),
                    LoggerFormat::JSON => self.json_write(l, process),
                },
            _ => Ok(()),
        }
    }
/// Cause a MessageControlContents to be written out.
Cause a MessageControlContents to be written out.
Cause a MessageControlContents to be written out .
pub fn output_message(&self, msg: ManagerStatusMessage) -> Result<(), Error> {
        let mut process_opt = self.process.borrow_mut();
        if process_opt.is_none() {
            return Err(Error::new(ErrorKind::Other, "no process running"));
        }
        let process = process_opt.as_mut().unwrap();
        match msg {
            ManagerStatusMessage::Log(l) =>
                match self.description.format {
                    LoggerFormat::TSV => self.tsv_write(l, process),
                    LoggerFormat::JSON => self.json_write(l, process),
                },
            _ => Ok(()),
        }
    }
pub fn output_message ( & self , msg : ManagerStatusMessage ) -> Result < ( ) , Error > { let mut process_opt = self . process . borrow_mut ( ) ; if process_opt . is_none ( ) { return Err ( Error :: new ( ErrorKind :: Other , " " ) ) ; } let process = process_opt . as_mut ( ) . unwrap ( ) ; match msg { ManagerStatusMessage :: Log ( l ) => match self . description . format { LoggerFormat :: TSV => self . tsv_write ( l , process ) , LoggerFormat :: JSON => self . json_write ( l , process ) , } , _ => Ok ( ( ) ) , } }
Cause a MessageControlContents to be written out.
Cause a MessageControlContents to be written out .
&self
msg
ManagerStatusMessage
&self
msg
ManagerStatusMessage