pub fn update_state(&mut self, state: FidlCallState) -> Result<(), Error> {
        self.state = state;
        if self.reported_state != Some(state) {
            let responder =
                self.responder.take().ok_or_else(|| format_err!("No call responder"))?;
            responder.send(state)?;
            self.reported_state = Some(state);
        }
        Ok(())
    }
/// Update the `state` and report the state if it is a new state and there is a
/// responder to report with.
Update the `state` and report the state if it is a new state and there is a
responder to report with.
Update the ` state ` and report the state if it is a new state and there is a responder to report with .
pub fn update_state(&mut self, state: FidlCallState) -> Result<(), Error> {
        self.state = state;
        if self.reported_state != Some(state) {
            let responder =
                self.responder.take().ok_or_else(|| format_err!("No call responder"))?;
            responder.send(state)?;
            self.reported_state = Some(state);
        }
        Ok(())
    }
pub fn update_state ( & mut self , state : FidlCallState ) -> Result < ( ) , Error > { self . state = state ; if self . reported_state != Some ( state ) { let responder = self . responder . take ( ) . ok_or_else ( | | format_err ! ( " " ) ) ? ; responder . send ( state ) ? ; self . reported_state = Some ( state ) ; } Ok ( ( ) ) }
Update the `state` and report the state if it is a new state and there is a
responder to report with.
Update the ` state ` and report the state if it is a new state and there is a responder to report with .
&mut self
state
FidlCallState
&mut self
state
FidlCallState