diff options
| author | Alejandro Soto <alejandro@34project.org> | 2021-12-28 22:04:10 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2021-12-28 22:05:11 -0600 |
| commit | 808d7b000bd02d8238ba7b0f1d6800428de661ef (patch) | |
| tree | f3bc863e08175e541ff19b4fb67175dc765e1926 /src/lib.rs | |
| parent | 982b2d03231b3e5abfb94445b1dec981000ffb17 (diff) | |
Add Ttl::NULL
Diffstat (limited to '')
| -rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -32,7 +32,7 @@ pub use nix::errno::Errno; pub use util::{FuseError, FuseResult}; -#[derive(Copy, Clone, Default, Eq, PartialEq)] +#[derive(Copy, Clone, Eq, PartialEq)] pub struct Ttl { seconds: u64, nanoseconds: u32, @@ -73,6 +73,11 @@ impl std::fmt::Display for Ino { } impl Ttl { + pub const NULL: Self = Ttl { + seconds: 0, + nanoseconds: 0, + }; + pub const MAX: Self = Ttl { seconds: u64::MAX, nanoseconds: u32::MAX, |
