fn build_minimal_service_definition() -> (bredr::ServiceDefinition, ServiceRecord) {
        let def = bredr::ServiceDefinition {
            service_class_uuids: Some(vec![
                Uuid::new16(bredr::ServiceClassProfileIdentifier::Headset as u16).into(),
                Uuid::new16(bredr::ServiceClassProfileIdentifier::Handsfree as u16).into(),
            ]),
            ..bredr::ServiceDefinition::EMPTY
        };

        let mut ids = HashSet::new();
        ids.insert(bredr::ServiceClassProfileIdentifier::Headset);
        ids.insert(bredr::ServiceClassProfileIdentifier::Handsfree);
        let record = ServiceRecord::new(ids, None, HashSet::new(), vec![], vec![]);

        (def, record)
    }
/// Builds the smallest service definition that is valid - only the Service Class IDs.
/// Returns the definition and the expected parsed ServiceRecord.
Builds the smallest service definition that is valid - only the Service Class IDs.
Returns the definition and the expected parsed ServiceRecord.
Builds the smallest service definition that is valid - only the Service Class IDs . Returns the definition and the expected parsed ServiceRecord .
fn build_minimal_service_definition() -> (bredr::ServiceDefinition, ServiceRecord) {
        let def = bredr::ServiceDefinition {
            service_class_uuids: Some(vec![
                Uuid::new16(bredr::ServiceClassProfileIdentifier::Headset as u16).into(),
                Uuid::new16(bredr::ServiceClassProfileIdentifier::Handsfree as u16).into(),
            ]),
            ..bredr::ServiceDefinition::EMPTY
        };
        let mut ids = HashSet::new();
        ids.insert(bredr::ServiceClassProfileIdentifier::Headset);
        ids.insert(bredr::ServiceClassProfileIdentifier::Handsfree);
        let record = ServiceRecord::new(ids, None, HashSet::new(), vec![], vec![]);
        (def, record)
    }
fn build_minimal_service_definition ( ) -> ( bredr :: ServiceDefinition , ServiceRecord ) { let def = bredr :: ServiceDefinition { service_class_uuids : Some ( vec ! [ Uuid new16 ( bredr ServiceClassProfileIdentifier Headset as u16 ) into ( ) Uuid new16 ( bredr ServiceClassProfileIdentifier Handsfree as u16 ) into ( ) ] ) , .. bredr :: ServiceDefinition :: EMPTY } ; let mut ids = HashSet :: new ( ) ; ids . insert ( bredr :: ServiceClassProfileIdentifier :: Headset ) ; ids . insert ( bredr :: ServiceClassProfileIdentifier :: Handsfree ) ; let record = ServiceRecord :: new ( ids , None , HashSet :: new ( ) , vec ! [ ] , vec ! [ ] ) ; ( def , record ) }
Builds the smallest service definition that is valid - only the Service Class IDs.
Builds the smallest service definition that is valid - only the Service Class IDs .