Skip to main content

apply_packet_id_rows

Function apply_packet_id_rows 

async fn apply_packet_id_rows(
    stmt: &mut Statement,
    session: &mut InMemory,
    ctor: impl Fn(PacketId) -> Store<'static>,
) -> Result<()>
Available on crate features tokio and turso only.
Expand description

Runs a no-parameter query whose rows each contain one packet id, applying ctor(packet_id) to session for every row. The pubrel and incoming-QoS-2 restore queries use this.