pub fn read_secret_file(&self) -> String {
        self.secret_file.as_ref().map(|secret_file_path| {
            let buf = {
                let mut f = File::open(secret_file_path).unwrap();
                let mut buf = String::new();
                f.read_to_string(&mut buf).unwrap();
                buf
            };

            ::std::fs::remove_file(secret_file_path).unwrap();

            buf
        }).unwrap()
    }
/// Return contents of secret file
///
/// panics if self.secret_file is None or an error is encountered while reading the file.
Return contents of secret file
panics if self.secret_file is None or an error is encountered while reading the file.
Return contents of secret file panics if self . secret_file is None or an error is encountered while reading the file .
pub fn read_secret_file(&self) -> String {
        self.secret_file.as_ref().map(|secret_file_path| {
            let buf = {
                let mut f = File::open(secret_file_path).unwrap();
                let mut buf = String::new();
                f.read_to_string(&mut buf).unwrap();
                buf
            };
            ::std::fs::remove_file(secret_file_path).unwrap();
            buf
        }).unwrap()
    }
pub fn read_secret_file ( & self ) -> String { self . secret_file . as_ref ( ) . map ( | secret_file_path | { let buf = { let mut f = File :: open ( secret_file_path ) . unwrap ( ) ; let mut buf = String :: new ( ) ; f . read_to_string ( & mut buf ) . unwrap ( ) ; buf } ; :: std :: fs :: remove_file ( secret_file_path ) . unwrap ( ) ; buf } ) . unwrap ( ) }
Return contents of secret file
panics if self.secret_file is None or an error is encountered while reading the file.
Return contents of secret file panics if self . secret_file is None or an error is encountered while reading the file .
&self
&self