pub fn parse(filename: &str) -> Result<CookieKey, io::Error> {
        let mut file = File::open(filename)?;
        let mut buffer = Vec::new();

        file.read_to_end(&mut buffer)?;
        Ok(CookieKey(buffer))
    }
/// Parse a cookie key from a file.
///
/// # Errors
///
/// There will be an error, if we cannot open the file.
///
Parse a cookie key from a file.
Parse a cookie key from a file .
pub fn parse(filename: &str) -> Result<CookieKey, io::Error> {
        let mut file = File::open(filename)?;
        let mut buffer = Vec::new();
        file.read_to_end(&mut buffer)?;
        Ok(CookieKey(buffer))
    }
pub fn parse ( filename : & str ) -> Result < CookieKey , io :: Error > { let mut file = File :: open ( filename ) ? ; let mut buffer = Vec :: new ( ) ; file . read_to_end ( & mut buffer ) ? ; Ok ( CookieKey ( buffer ) ) }
Parse a cookie key from a file.
Parse a cookie key from a file .
filename
&str
filename
&str
errors
There will be an error, if we cannot open the file.
There will be an error if we cannot open the file .