Skip to main content

decode_message

Function decode_message 

Source
pub fn decode_message(buf: &[u8]) -> Result<Message, FaucetError>
Available on crate features source-postgres-cdc and source-rest only.
Expand description

Decode a single pgoutput message from the start of buf.

The caller has already stripped the XLogData header. The first byte is the message kind discriminator.