Function sq::detect_armor_kind
source · [−]pub(crate) fn detect_armor_kind(
input: Box<dyn BufferedReader<()>>
) -> (Box<dyn BufferedReader<()>>, Kind)
Expand description
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.