91 if (
this == &other)
return;
93 if (this->connection_id != 0)
94 SignalManager::unsubscribe(*
this);
96 this->signal_id = tenno::move(other.signal_id);
97 this->connection_id = other.connection_id;
98 other.signal_id = SignalId{};
99 other.connection_id = ConnectionId{};
103 if (
this == &other)
return *
this;
105 if (this->connection_id != 0)
106 SignalManager::unsubscribe(*
this);
108 this->signal_id = tenno::move(other.signal_id);
109 this->connection_id = other.connection_id;
110 other.signal_id = SignalId{};
111 other.connection_id = ConnectionId{};
123 Subscription(SignalId signal_id, ConnectionId connection_id)
124 : signal_id(signal_id), connection_id(connection_id) {}
127 ConnectionId connection_id;