1414#include < OpenGraphCxx/Vector/vector.hpp>
1515#include < dispatch/dispatch.h>
1616#include < memory>
17+ #include < swift/bridging>
1718
1819OG_ASSUME_NONNULL_BEGIN
1920
@@ -49,6 +50,23 @@ class DebugServer {
4950 // / @param mode The operating mode for the debug server
5051 DebugServer (OGDebugServerMode mode);
5152
53+ // / Move constructor for transferring ownership of server resources.
54+ // /
55+ // / @param other The DebugServer instance to move from
56+ DebugServer (DebugServer&& other) OG_NOEXCEPT;
57+
58+ // / Move assignment operator for transferring ownership of server resources.
59+ // /
60+ // / @param other The DebugServer instance to move from
61+ // / @return Reference to this instance after the move
62+ DebugServer& operator =(DebugServer&& other) OG_NOEXCEPT;
63+
64+ // / Deleted copy constructor to prevent accidental copying.
65+ DebugServer (const DebugServer&) = delete ;
66+
67+ // / Deleted copy assignment operator to prevent accidental copying.
68+ DebugServer& operator =(const DebugServer&) = delete ;
69+
5270 // / Destroys the debug server and cleans up all resources.
5371 // / Automatically closes all active connections and stops the server.
5472 ~DebugServer ();
@@ -57,7 +75,7 @@ class DebugServer {
5775 // /
5876 // / @return A CFURLRef containing the server URL, or nullptr if not running.
5977 // / The caller is responsible for releasing the returned URL.
60- CFURLRef _Nullable copy_url () const ;
78+ CFURLRef _Nullable copy_url () const SWIFT_RETURNS_INDEPENDENT_VALUE ;
6179
6280 // / Shuts down the debug server and closes all connections.
6381 // / Called internally during destruction or explicit stop.
0 commit comments