/// Make a new Peer which is connected to the peer `id` using the AVDTP `peer`.
/// The `streams` are the local endpoints available to the peer.
/// The `inspect` is the inspect node associated with the peer.
Make a new Peer which is connected to the peer `id` using the AVDTP `peer`.
The `streams` are the local endpoints available to the peer.
The `inspect` is the inspect node associated with the peer.
Make a new Peer which is connected to the peer ` id ` using the AVDTP ` peer ` . The ` streams ` are the local endpoints available to the peer . The ` inspect ` is the inspect node associated with the peer .
pub fn create(
        id: PeerId,
        peer: avdtp::Peer,
        streams: Streams,
        profile: ProfileProxy,
        inspect: inspect::Node,
        cobalt_sender: CobaltSender,
    ) -> Self {
        // populate the higher level "id" inspect field before passing the inspect node to
        // `PeerInner` because the concept of a `PeerId` does not exist at that level.
        inspect.record_string("id", id.to_string());
        let res = Self {
            id,
            inner: Arc::new(Mutex::new(PeerInner::new(peer, streams, inspect, cobalt_sender))),
            profile,
            descriptor: None,
        };
        res.start_requests_task();
        res
    }
pub fn create ( id : PeerId , peer : avdtp :: Peer , streams : Streams , profile : ProfileProxy , inspect : inspect :: Node , cobalt_sender : CobaltSender , ) -> Self { // populate the higher level "id" inspect field before passing the inspect node to // `PeerInner` because the concept of a `PeerId` does not exist at that level. inspect . record_string ( " " , id . to_string ( ) ) ; let res = Self { id , inner : Arc :: new ( Mutex :: new ( PeerInner :: new ( peer , streams , inspect , cobalt_sender ) ) ) , profile , descriptor : None , } ; res . start_requests_task ( ) ; res }
Make a new Peer which is connected to the peer `id` using the AVDTP `peer`.
Make a new Peer which is connected to the peer ` id ` using the AVDTP ` peer ` .
id
PeerId
peer
avdtp::Peer
streams
Streams
profile
ProfileProxy
inspect
inspect::Node
cobalt_sender
CobaltSender