pub fn subscribe_scalar<M>(
cid: CID,
msg: M,
sid: SID,
) -> Result<(usize, usize), M::Error>where
M: ScalarSubscription + 'static,Expand description
Subscribe to a ScalarEvent event.
§Arguments
cid- The connection ID to the event sending server.sid- The server ID of the event receiving server.
§Returns
A tuple containing two unique message IDs (to this process) for the incoming events:
- The first ID is for the event message.
- The second ID is for the cancellation message.