pub fn push_signal(signal: &[u8]) -> Result<()>
Expand description

Pushes a signal to the signal queue.

The signal parameter contains a CBOR-encoded array representing the signal, which must be a mix of numbers, strings, and maps containing these types, and the first element of which must be a string containing the signal name.

§Errors

  • CborDecode is returned if the params pointer is present but contains an invalid or unsupported CBOR sequence.
  • QueueFull is returned if the computer’s signal queue is full.