fn write(&mut self) -> Result<(), Error> {
        // Serialize the schedule.
        let data = self.scheduler.schedule().serialize()?;
        // Write it to the file.
        fs::File::create(&self.schedule_path)?.write(data.as_bytes())?;
        Ok(())
    }
/// Write the state to the schedule file.
Write the state to the schedule file.
Write the state to the schedule file .
fn write(&mut self) -> Result<(), Error> {
        // Serialize the schedule.
        let data = self.scheduler.schedule().serialize()?;
        // Write it to the file.
        fs::File::create(&self.schedule_path)?.write(data.as_bytes())?;
        Ok(())
    }
fn write ( & mut self ) -> Result < ( ) , Error > { // Serialize the schedule. let data = self . scheduler . schedule ( ) . serialize ( ) ? ; // Write it to the file. fs :: File :: create ( & self . schedule_path ) ? . write ( data . as_bytes ( ) ) ? ; Ok ( ( ) ) }
Write the state to the schedule file.
Write the state to the schedule file .
&mut self
&mut self