Skip to main content

try_encode_control

Function try_encode_control 

Source
pub fn try_encode_control(
    shutdown: bool,
    tenant_count: u32,
    observable_slots: u32,
) -> Result<Vec<u8>, ProtocolError>
Expand description

Strictly encode a control-buffer payload.

ยงErrors

Returns ProtocolError when the requested observable region overflows host address space.