[][src]Function sq::detect_armor_kind

fn detect_armor_kind(
    input: Box<dyn BufferedReader<()>>
) -> (Box<dyn BufferedReader<()>>, Kind)

Peeks at the first packet to guess the type.

Returns the given reader unchanged. If the detection fails, armor::Kind::File is returned as safe default.