diff --git a/src/fs.rs b/src/fs.rs index 559f130..bf0dc63 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -300,7 +300,7 @@ impl FsInfoSector { /// A FAT filesystem mount options. /// /// Options are specified as an argument for `FileSystem::new` method. -//#[derive(Copy, Clone, Debug)] +//FIXME: #[derive(Copy, Clone, Debug)] pub struct FsOptions { pub(crate) update_accessed_date: bool, pub(crate) oem_cp_converter: &'static OemCpConverter, @@ -726,6 +726,7 @@ impl<'a, T: ReadWriteSeek> Seek for DiskSlice<'a, T> { /// /// Provides a custom implementation for a short name encoding/decoding. /// Default implementation changes all non-ASCII characters to the replacement character (U+FFFD). +/// `OemCpConverter` is specified by the `oem_cp_converter` property in `FsOptions` struct. pub trait OemCpConverter { fn decode(&self, oem_char: u8) -> char; fn encode(&self, uni_char: char) -> Option; diff --git a/src/time.rs b/src/time.rs index e11489c..166966d 100644 --- a/src/time.rs +++ b/src/time.rs @@ -128,6 +128,7 @@ impl From> for DateTime { /// Provides a custom implementation for a time resolution used when updating directory entry time fields. /// Default implementation gets time from `chrono` crate if `chrono` feature is enabled. /// Otherwise default implementation returns DOS minimal date-time (1980/1/1 0:00:00). +/// `TimeProvider` is specified by the `time_provider` property in `FsOptions` struct. pub trait TimeProvider { fn get_current_date(&self) -> Date; fn get_current_date_time(&self) -> DateTime;