def _box(self, obj):
        if brine.dumpable(obj):
            return consts.LABEL_VALUE, obj
        if type(obj) is tuple:
            return consts.LABEL_TUPLE, tuple(self._box(item) for item in obj)
        elif isinstance(obj, netref.BaseNetref) and obj.____conn__() is self:
            return consts.LABEL_LOCAL_REF, obj.____oid__
        elif isinstance(obj, AsyncResult):            
            obj.async_set_expiry(3)             # HACK: wait at most 3 seconds until the async result arrives     
            return self._box(obj.async_value)
        else:
            self._local_objects.add(obj)
            try:
                cls = obj.__class__
            except Exception:
                # see issue #16
                cls = type(obj)
            return consts.LABEL_REMOTE_REF, (id(obj), cls.__name__, cls.__module__)
Set a reference to the global adaptation manager.
dataset/ETHPy150Open sccn/SNAP/src/rpyc/core/protocol.py/Connection._box--crossover with--dataset/ETHPy150Open enthought/traits/traits/adaptation/adaptation_manager.py/get_global_adaptation_manager