Document GocryptFs

This commit is contained in:
oupson 2022-10-06 17:06:34 +02:00
parent 53ece0c257
commit fdc8aeaa53
Signed by: oupson
GPG Key ID: 3BD88615552EFCB7
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
//! A library to write gocryptfs compatible programs //! A library to write gocryptfs compatible programs.
use std::{fs::File, path::Path}; use std::{fs::File, path::Path};
@ -45,10 +45,12 @@ impl GocryptFs {
}) })
} }
pub fn filename_decoder<'s> (&'s self) -> &'s FilenameDecoder { /// Get the [`filename decoder`](struct@FilenameDecoder) attached to this GocryptFs.
pub fn filename_decoder<'s>(&'s self) -> &'s FilenameDecoder {
&self.filename_decoder &self.filename_decoder
} }
/// Get the [`content decoder`](struct@ContentEnc) attached to this GocryptFs.
pub fn content_decoder(&self) -> &ContentEnc { pub fn content_decoder(&self) -> &ContentEnc {
&self.content_decoder &self.content_decoder
} }