Expand description
Helper for encoding a MacCommand as an outbound payload without
touching the node crate’s public API.
Rationale: adding PeerConnection::send_mac_command to the node crate
would duplicate send-plumbing for a single use case. Instead, we prefix
the existing mac_command::encode output with PayloadType::MacCommand
and call the normal PeerConnection::send.
Functions§
- encode_
mac_ command - Encode
cmdintooutas a complete MAC-command payload (PayloadType::MacCommandbyte + encoded command body). Returns the number of bytes written.