Loading crates/tor-netdoc/src/doc/netstatus.rs +4 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,10 @@ impl Lifetime { pub fn valid_until(&self) -> time::SystemTime { self.valid_until } /// Return true if this consensus is officially valid at the provided time. pub fn valid_at(&self, when: time::SystemTime) -> bool { self.valid_after <= when && when <= self.valid_until } } /// A set of named network parameters. Loading doc/semver_status.md +1 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ BREAKING: Added new cache_trust element to DirMgrConfig. ### tor-netdoc BREAKING: Routerstatus::nickname() now returns &str, not &String. MODIFIED: Lifetime has a valid_at() method. ### tor-persist Loading Loading
crates/tor-netdoc/src/doc/netstatus.rs +4 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,10 @@ impl Lifetime { pub fn valid_until(&self) -> time::SystemTime { self.valid_until } /// Return true if this consensus is officially valid at the provided time. pub fn valid_at(&self, when: time::SystemTime) -> bool { self.valid_after <= when && when <= self.valid_until } } /// A set of named network parameters. Loading
doc/semver_status.md +1 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ BREAKING: Added new cache_trust element to DirMgrConfig. ### tor-netdoc BREAKING: Routerstatus::nickname() now returns &str, not &String. MODIFIED: Lifetime has a valid_at() method. ### tor-persist Loading