Home
last modified time | relevance | path

Searched refs:Lifetime (Results 1 – 7 of 7) sorted by relevance

/webrtc/turn/src/proto/lifetime/
H A Dlifetime_test.rs5 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()
/webrtc/turn/src/proto/
H A Dlifetime.rs25 pub struct Lifetime(pub Duration); struct
27 impl fmt::Display for Lifetime { implementation
36 impl Setter for Lifetime { implementation
46 impl Getter for Lifetime { implementation
/webrtc/turn/benches/
H A Dbench.rs8 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()
/webrtc/turn/src/server/request/
H A Drequest_test.rs15 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()
/webrtc/turn/src/server/
H A Drequest.rs530 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()
/webrtc/turn/src/client/
H A Drelay_conn.rs471 Box::new(proto::lifetime::Lifetime(lifetime)), in refresh_allocation()
509 let mut updated_lifetime = proto::lifetime::Lifetime::default(); in refresh_allocation()
H A Dmod.rs555 let mut lifetime = Lifetime::default(); in allocate()