Expose time::deplay_queue::Expired::deadline (#2300)

* Expose time::deplay_queue::Expired::deadline

* Return by value
This commit is contained in:
MOZGIII
2020-04-02 17:11:17 -04:00
committed by GitHub
parent 3eaa1885c3
commit 03cb3b6ca1
+5
View File
@@ -879,4 +879,9 @@ impl<T> Expired<T> {
pub fn into_inner(self) -> T {
self.data
}
/// Returns the deadline that the expiration was set to.
pub fn deadline(&self) -> Instant {
self.deadline
}
}