pub fn age(&self) -> u64 {
        debug!("Message.age(id = {})", self.id_);
        match &self.payload_ {
            Some(payload) => {
                SystemTime::now()
                    .duration_since(SystemTime::UNIX_EPOCH)
                    .unwrap()
                    .as_secs()
                    .max(payload.timestamp)
                    - payload.timestamp
            }
            None => 0,
        }
    }
/// Get message's age in seconds.
Get message's age in seconds.
Get message ' s age in seconds .
pub fn age(&self) -> u64 {
        debug!("Message.age(id = {})", self.id_);
        match &self.payload_ {
            Some(payload) => {
                SystemTime::now()
                    .duration_since(SystemTime::UNIX_EPOCH)
                    .unwrap()
                    .as_secs()
                    .max(payload.timestamp)
                    - payload.timestamp
            }
            None => 0,
        }
    }
pub fn age ( & self ) -> u64 { debug ! ( " " self id_ ) ; match & self . payload_ { Some ( payload ) => { SystemTime :: now ( ) . duration_since ( SystemTime :: UNIX_EPOCH ) . unwrap ( ) . as_secs ( ) . max ( payload . timestamp ) - payload . timestamp } None => 0 , } }
Get message's age in seconds.
Get message ' s age in seconds .
&self
&self