time_until_eta

Function time_until_eta 

Source
pub fn time_until_eta(message: &Message) -> Option<Duration>
Expand description

Get the time remaining until a message should be executed

§Arguments

  • message - The message to check

§Returns

Some(Duration) if the message has an ETA in the future, None otherwise