pub fn update_timestamps(
        &self,
        creation_time: Option<Duration>,
        modification_time: Option<Duration>,
    ) {
        if let (None, None) = (creation_time.as_ref(), modification_time.as_ref()) {
            return;
        }
        let mut inner = self.inner.lock().unwrap();
        inner.creation_time = creation_time.or(inner.creation_time);
        inner.modification_time = modification_time.or(inner.modification_time);
    }
/// Sets the cached timestamp values.  The filesystem should provide values which are truncated
/// to the filesystem's maximum supported granularity.  This is not thread-safe; the caller is
/// responsible for making sure that only one thread is mutating the cache at any point in time.
Sets the cached timestamp values.  The filesystem should provide values which are truncated
to the filesystem's maximum supported granularity.  This is not thread-safe; the caller is
responsible for making sure that only one thread is mutating the cache at any point in time.
Sets the cached timestamp values . The filesystem should provide values which are truncated to the filesystem ' s maximum supported granularity . This is not thread - safe ; the caller is responsible for making sure that only one thread is mutating the cache at any point in time .
pub fn update_timestamps(
        &self,
        creation_time: Option<Duration>,
        modification_time: Option<Duration>,
    ) {
        if let (None, None) = (creation_time.as_ref(), modification_time.as_ref()) {
            return;
        }
        let mut inner = self.inner.lock().unwrap();
        inner.creation_time = creation_time.or(inner.creation_time);
        inner.modification_time = modification_time.or(inner.modification_time);
    }
pub fn update_timestamps ( & self , creation_time : Option < Duration > , modification_time : Option < Duration > , ) { if let ( None , None ) = ( creation_time . as_ref ( ) , modification_time . as_ref ( ) ) { return ; } let mut inner = self . inner . lock ( ) . unwrap ( ) ; inner . creation_time = creation_time . or ( inner . creation_time ) ; inner . modification_time = modification_time . or ( inner . modification_time ) ; }
Sets the cached timestamp values.
Sets the cached timestamp values .
&self
creation_time
Option<Duration>
modification_time
Option<Duration>
&self
creation_time
Option<Duration>
modification_time
Option<Duration>