func (u *UnitStateAPI) SetState(unitState params.SetUnitStateArg) error {
	unitState.Tag = u.tag.String()
	var results params.ErrorResults
	args := params.SetUnitStateArgs{
		Args: []params.SetUnitStateArg{unitState},
	}
	err := u.facade.FacadeCall("SetState", args, &results)
	if err != nil {
		return errors.Trace(err)
	}
	// Make sure we correctly decode quota-related errors.
	return maybeRestoreQuotaLimitError(results.OneError())
}
// SetState sets the state persisted by the charm running in this unit
// and the state internal to the uniter for this unit.
SetState sets the state persisted by the charm running in this unit
and the state internal to the uniter for this unit.
// SetState sets the state persisted by the charm running in this unit // and the state internal to the uniter for this unit .
func (u *UnitStateAPI) SetState(unitState params.SetUnitStateArg) error {
	unitState.Tag = u.tag.String()
	var results params.ErrorResults
	args := params.SetUnitStateArgs{
		Args: []params.SetUnitStateArg{unitState},
	}
	err := u.facade.FacadeCall("SetState", args, &results)
	if err != nil {
		return errors.Trace(err)
	}
	return maybeRestoreQuotaLimitError(results.OneError())
}
func ( u * UnitStateAPI ) SetState ( unitState params . SetUnitStateArg ) error { unitState . Tag = u . tag . String ( ) var results params . ErrorResults args := params . SetUnitStateArgs { Args : [ ] params . SetUnitStateArg { unitState } , } err := u . facade . FacadeCall ( " " , args , & results ) if err != nil { return errors . Trace ( err ) } return maybeRestoreQuotaLimitError ( results . OneError ( ) ) }
SetState sets the state persisted by the charm running in this unit
and the state internal to the uniter for this unit.
SetState sets the state persisted by the charm running in this unit and the state internal to the uniter for this unit .
// Make sure we correctly decode quota-related errors.