fn create_mock_peer(
        id: PeerId,
    ) -> Result<(MockPeer, bredr::PeerObserverRequestStream, Arc<Mutex<TestEnvironment>>), Error>
    {
        let (env, test_env) = setup_environment(id)?;
        let (proxy, stream) = create_proxy_and_stream::<bredr::PeerObserverMarker>().unwrap();
        Ok((MockPeer::new(id, Some(env), Some(proxy)), stream, test_env))
    }
/// (v1 only) Creates a MockPeer with the sandboxed NestedEnvironment.
/// Returns the MockPeer, the relay for updates for the peer, and a TestEnvironment object
/// to keep alive relevant state.
(v1 only) Creates a MockPeer with the sandboxed NestedEnvironment.
Returns the MockPeer, the relay for updates for the peer, and a TestEnvironment object
to keep alive relevant state.
( v1 only ) Creates a MockPeer with the sandboxed NestedEnvironment . Returns the MockPeer the relay for updates for the peer and a TestEnvironment object to keep alive relevant state .
fn create_mock_peer(
        id: PeerId,
    ) -> Result<(MockPeer, bredr::PeerObserverRequestStream, Arc<Mutex<TestEnvironment>>), Error>
    {
        let (env, test_env) = setup_environment(id)?;
        let (proxy, stream) = create_proxy_and_stream::<bredr::PeerObserverMarker>().unwrap();
        Ok((MockPeer::new(id, Some(env), Some(proxy)), stream, test_env))
    }
fn create_mock_peer ( id : PeerId , ) -> Result < ( MockPeer , bredr :: PeerObserverRequestStream , Arc < Mutex < TestEnvironment > > ) , Error > { let ( env , test_env ) = setup_environment ( id ) ? ; let ( proxy , stream ) = create_proxy_and_stream :: < bredr :: PeerObserverMarker > ( ) . unwrap ( ) ; Ok ( ( MockPeer :: new ( id , Some ( env ) , Some ( proxy ) ) , stream , test_env ) ) }
(v1 only) Creates a MockPeer with the sandboxed NestedEnvironment.
( v1 only ) Creates a MockPeer with the sandboxed NestedEnvironment .
id
PeerId
id
PeerId