Skip to main content

get_pack

Function get_pack 

Source
fn get_pack<'a>(
    packs: &'a BTreeMap<String, Pack>,
    pack_key: &str,
    sender: &UnboundedSender<Response>,
) -> Option<&'a Pack>
Expand description

Looks up a pack by key. If not found, sends a “Pack not found” error and returns None.