diff options
| author | Alejandro Soto <alejandro@34project.org> | 2021-12-28 22:01:37 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2021-12-28 22:01:37 -0600 |
| commit | 982b2d03231b3e5abfb94445b1dec981000ffb17 (patch) | |
| tree | 1399424bf73af43e5f58ed293e5a2fe8cdb03073 /src/lib.rs | |
| parent | 61325f2daae42cb349e6f7612c6c6bb88c3f942d (diff) | |
Rename TimeToLive as Ttl
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -33,7 +33,7 @@ pub use nix::errno::Errno; pub use util::{FuseError, FuseResult}; #[derive(Copy, Clone, Default, Eq, PartialEq)] -pub struct TimeToLive { +pub struct Ttl { seconds: u64, nanoseconds: u32, } @@ -72,15 +72,15 @@ impl std::fmt::Display for Ino { } } -impl TimeToLive { - pub const MAX: Self = TimeToLive { +impl Ttl { + pub const MAX: Self = Ttl { seconds: u64::MAX, nanoseconds: u32::MAX, }; - pub fn new(seconds: u64, nanoseconds: u32) -> TimeToLive { + pub fn new(seconds: u64, nanoseconds: u32) -> Ttl { assert!(nanoseconds < 1_000_000_000); - TimeToLive { + Ttl { seconds, nanoseconds, } |
