A channel definition, or an IpcUncloneable marker when its payload
cannot cross IPC.
The marker is not assignable to ChannelDef, so defineIpcModule
rejects the channel where it is declared. Without this the mistake would only
surface in the generated bridge, far from the handler that caused it.
TResult is checked for handle/handleOnce only. A listen callback's
return value is never sent back to the renderer, so it never gets cloned.
A channel definition, or an IpcUncloneable marker when its payload cannot cross IPC.
The marker is not assignable to ChannelDef, so
defineIpcModulerejects the channel where it is declared. Without this the mistake would only surface in the generated bridge, far from the handler that caused it.TResultis checked forhandle/handleOnceonly. Alistencallback's return value is never sent back to the renderer, so it never gets cloned.