sheave_server

Function return_message_id

Source
pub fn return_message_id(message_id: u32)
Expand description

Registers a message ID released from a server. This considers following things to register it:

  1. Checks whether it is equal to current max number. Because of avoiding to duplicate IDs which are provided.
  2. If it is, decreases current max number, then registers it.
  3. Otherwise keeps current max number as it is.