Skip to main content

complete_set

Function complete_set 

Source
pub fn complete_set<'a>(header: &SetHeader<'_>, value: &'a [u8]) -> Command<'a>
Expand description

Complete a SET command after receiving the full value.

This is a helper for constructing the final Command after streaming receive. The caller is responsible for ensuring the value data is correct.

§Arguments

  • header - The parsed SET header from NeedValue
  • value - The complete value data (must match the expected length)

§Returns

A Command::Set with the provided value.