fn on_connection_request(
        &mut self,
        _protocol: Vec<ProtocolDescriptor>,
        channel: fuchsia_bluetooth::types::Channel,
    ) {
        info!("connection request from peer {:?}", self.id);
        if self.connection.connected() {
            info!("overwriting existing connection");
        }
        self.connection.connect(channel);
    }
/// Always give preference to connection requests received from the peer device.
Always give preference to connection requests received from the peer device.
Always give preference to connection requests received from the peer device .
fn on_connection_request(
        &mut self,
        _protocol: Vec<ProtocolDescriptor>,
        channel: fuchsia_bluetooth::types::Channel,
    ) {
        info!("connection request from peer {:?}", self.id);
        if self.connection.connected() {
            info!("overwriting existing connection");
        }
        self.connection.connect(channel);
    }
fn on_connection_request ( & mut self , _protocol : Vec < ProtocolDescriptor > , channel : fuchsia_bluetooth :: types :: Channel , ) { info ! ( " " self id ) ; if self . connection . connected ( ) { info ! ( " " ) ; } self . connection . connect ( channel ) ; }
Always give preference to connection requests received from the peer device.
Always give preference to connection requests received from the peer device .
&mut self
_protocol
Vec<ProtocolDescriptor>
channel
fuchsia_bluetooth::types::Channel
&mut self
_protocol
Vec<ProtocolDescriptor>
channel
fuchsia_bluetooth::types::Channel