pub fn spp_service_definition() -> bredr::ServiceDefinition {
    bredr::ServiceDefinition {
        service_class_uuids: Some(vec![Uuid::new16(
            bredr::ServiceClassProfileIdentifier::SerialPort as u16,
        )
        .into()]),
        protocol_descriptor_list: Some(vec![
            bredr::ProtocolDescriptor {
                protocol: bredr::ProtocolIdentifier::L2Cap,
                params: vec![],
            },
            bredr::ProtocolDescriptor {
                protocol: bredr::ProtocolIdentifier::Rfcomm,
                params: vec![],
            },
        ]),
        profile_descriptors: Some(vec![bredr::ProfileDescriptor {
            profile_id: bredr::ServiceClassProfileIdentifier::SerialPort,
            major_version: 1,
            minor_version: 2,
        }]),
        ..bredr::ServiceDefinition::EMPTY
    }
}
/// Returns a valid SPP Service Definition.
/// See SPP V12 Table 6.1.
Returns a valid SPP Service Definition.
See SPP V12 Table 6.1.
Returns a valid SPP Service Definition . See SPP V12 Table 6 . 1 .
pub fn spp_service_definition() -> bredr::ServiceDefinition {
    bredr::ServiceDefinition {
        service_class_uuids: Some(vec![Uuid::new16(
            bredr::ServiceClassProfileIdentifier::SerialPort as u16,
        )
        .into()]),
        protocol_descriptor_list: Some(vec![
            bredr::ProtocolDescriptor {
                protocol: bredr::ProtocolIdentifier::L2Cap,
                params: vec![],
            },
            bredr::ProtocolDescriptor {
                protocol: bredr::ProtocolIdentifier::Rfcomm,
                params: vec![],
            },
        ]),
        profile_descriptors: Some(vec![bredr::ProfileDescriptor {
            profile_id: bredr::ServiceClassProfileIdentifier::SerialPort,
            major_version: 1,
            minor_version: 2,
        }]),
        ..bredr::ServiceDefinition::EMPTY
    }
}
pub fn spp_service_definition ( ) -> bredr :: ServiceDefinition { bredr :: ServiceDefinition { service_class_uuids : Some ( vec ! [ Uuid new16 ( bredr ServiceClassProfileIdentifier SerialPort as u16 ) into ( ) ] ) , protocol_descriptor_list : Some ( vec ! [ bredr ProtocolDescriptor { protocol bredr ProtocolIdentifier L2Cap params vec [ ] } bredr ProtocolDescriptor { protocol bredr ProtocolIdentifier Rfcomm params vec [ ] } ] ) , profile_descriptors : Some ( vec ! [ bredr ProfileDescriptor { profile_id bredr ServiceClassProfileIdentifier SerialPort major_version 1 minor_version 2 } ] ) , .. bredr :: ServiceDefinition :: EMPTY } }
Returns a valid SPP Service Definition.
Returns a valid SPP Service Definition .