Searched refs:Lifetime (Results 1 – 7 of 7) sorted by relevance
5 let l = Lifetime(Duration::from_secs(10)); in test_lifetime_string()14 let l = Lifetime(Duration::from_secs(10)); in test_lifetime_add_to()23 let mut life = Lifetime::default(); in test_lifetime_add_to()30 let mut n_handle = Lifetime::default(); in test_lifetime_add_to()
25 pub struct Lifetime(pub Duration); struct27 impl fmt::Display for Lifetime { implementation36 impl Setter for Lifetime { implementation46 impl Getter for Lifetime { implementation
8 use turn::proto::lifetime::Lifetime;106 let l = Lifetime(Duration::from_secs(1)); in benchmark_lifetime()117 let expected = Lifetime(Duration::from_secs(60)); in benchmark_lifetime()119 let mut l = Lifetime::default(); in benchmark_lifetime()
15 let lifetime = Lifetime(Duration::from_secs(5)); in test_allocation_lifetime_parsing()38 let lifetime = Lifetime(MAXIMUM_ALLOCATION_LIFETIME * 2); in test_allocation_lifetime_overflow()104 Lifetime::default().add_to(&mut m)?; in test_allocation_lifetime_deletion_zero_lifetime()
530 Box::new(Lifetime(lifetime_duration)), in handle_allocate_request()587 Box::new(Lifetime(lifetime_duration)), in handle_refresh_request()881 let mut lifetime = Lifetime::default(); in allocation_lifetime()
471 Box::new(proto::lifetime::Lifetime(lifetime)), in refresh_allocation()509 let mut updated_lifetime = proto::lifetime::Lifetime::default(); in refresh_allocation()
555 let mut lifetime = Lifetime::default(); in allocate()