mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
Expose time::deplay_queue::Expired::deadline (#2300)
* Expose time::deplay_queue::Expired::deadline * Return by value
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user