pub fn build_rfcomm_protocol(server_channel: ServerChannel) -> Vec<ProtocolDescriptor> {
    // The PSM for L2CAP is empty when RFCOMM is used.
    vec![
        ProtocolDescriptor { protocol: bredr::ProtocolIdentifier::L2Cap, params: vec![] },
        ProtocolDescriptor {
            protocol: bredr::ProtocolIdentifier::Rfcomm,
            params: vec![DataElement::Uint8(server_channel.into())],
        },
    ]
}
/// Returns a ProtocolDescriptorList for an RFCOMM service with the provided `server_channel`.
Returns a ProtocolDescriptorList for an RFCOMM service with the provided `server_channel`.
Returns a ProtocolDescriptorList for an RFCOMM service with the provided ` server_channel ` .
pub fn build_rfcomm_protocol(server_channel: ServerChannel) -> Vec<ProtocolDescriptor> {
    // The PSM for L2CAP is empty when RFCOMM is used.
    vec![
        ProtocolDescriptor { protocol: bredr::ProtocolIdentifier::L2Cap, params: vec![] },
        ProtocolDescriptor {
            protocol: bredr::ProtocolIdentifier::Rfcomm,
            params: vec![DataElement::Uint8(server_channel.into())],
        },
    ]
}
pub fn build_rfcomm_protocol ( server_channel : ServerChannel ) -> Vec < ProtocolDescriptor > { // The PSM for L2CAP is empty when RFCOMM is used. vec ! [ ProtocolDescriptor { protocol bredr ProtocolIdentifier L2Cap params vec [ ] } ProtocolDescriptor { protocol bredr ProtocolIdentifier Rfcomm params vec [ DataElement Uint8 ( server_channel into ( ) ) ] } ] }
Returns a ProtocolDescriptorList for an RFCOMM service with the provided `server_channel`.
Returns a ProtocolDescriptorList for an RFCOMM service with the provided ` server_channel ` .
server_channel
ServerChannel
server_channel
ServerChannel