func (m *MsgConnect) SetWillQos(l QosLevel) error {
    if !l.Valid() {
        return ErrBadQosLevel
    }
    set2Bits(&m.flags, byte(l), 3)
    return nil
}
// Setter of Will-Qos level

Setter of Will-Qos level
// Setter of Will - Qos level
func (m *MsgConnect) SetWillQos(l QosLevel) error {
    if !l.Valid() {
        return ErrBadQosLevel
    }
    set2Bits(&m.flags, byte(l), 3)
    return nil
}
func ( m * MsgConnect ) SetWillQos ( l QosLevel ) error { if ! l . Valid ( ) { return ErrBadQosLevel } set2Bits ( & m . flags , byte ( l ) , 3 ) return nil }
Setter of Will-Qos level
Setter of Will - Qos level