func (m *MsgConnect) WillQos() (QosLevel, error) {
    l := QosLevel(get2Bits(m.flags, 3))
    if l.Valid() {
        return l, nil
    } else {
        return l, ErrBadQosLevel
    }
}
// Getter of Will-Qos level

Getter of Will-Qos level
// Getter of Will - Qos level
func (m *MsgConnect) WillQos() (QosLevel, error) {
    l := QosLevel(get2Bits(m.flags, 3))
    if l.Valid() {
        return l, nil
    } else {
        return l, ErrBadQosLevel
    }
}
func ( m * MsgConnect ) WillQos ( ) ( QosLevel , error ) { l := QosLevel ( get2Bits ( m . flags , 3 ) ) if l . Valid ( ) { return l , nil } else { return l , ErrBadQosLevel } }
Getter of Will-Qos level
Getter of Will - Qos level