/// convinience method to get a GetPermit from a file
convinience method to get a GetPermit from a file
convinience method to get a GetPermit from a file
pub fn permit_from_file<R: AsRef<std::path::Path>>(
    path: R,
    key: &str,
) -> Result<impl GetPermit, E> {
    Ok(permit_from_rdr(std::fs::File::open(path)?, key)?)
}
pub fn permit_from_file < R : AsRef < std :: path :: Path > > ( path : R , key : & str , ) -> Result < impl GetPermit , E > { Ok ( permit_from_rdr ( std :: fs :: File :: open ( path ) ? , key ) ? ) }
convinience method to get a GetPermit from a file
convinience method to get a GetPermit from a file
path
R
key
&str