pub fn ensure_caps() -> anyhow::Result<()> {
    if !nix::unistd::Uid::effective().is_root() {
        eprintln!("root user required to use raw sockets, see https://github.com/fujiapple852/trippy#privileges");
        std::process::exit(-1);
    }
    Ok(())
}
/// Ensure the effective user is `root`.
Ensure the effective user is `root`.
Ensure the effective user is ` root ` .
pub fn ensure_caps() -> anyhow::Result<()> {
    if !nix::unistd::Uid::effective().is_root() {
        eprintln!("root user required to use raw sockets, see https://github.com/fujiapple852/trippy#privileges");
        std::process::exit(-1);
    }
    Ok(())
}
pub fn ensure_caps ( ) -> anyhow :: Result < ( ) > { if ! nix :: unistd :: Uid :: effective ( ) . is_root ( ) { eprintln ! ( " " ) ; std :: process :: exit ( - 1 ) ; } Ok ( ( ) ) }
Ensure the effective user is `root`.
Ensure the effective user is ` root ` .