Home
last modified time | relevance | path

Searched refs:lifetime (Results 1 – 15 of 15) sorted by relevance

/webrtc/turn/src/allocation/
H A Dpermission.rs30 pub(crate) async fn start(&mut self, lifetime: Duration) { in start()
39 let timer = tokio::time::sleep(lifetime); in start()
72 pub(crate) async fn refresh(&self, lifetime: Duration) { in refresh()
74 let _ = tx.send(lifetime).await; in refresh()
H A Dchannel_bind.rs34 pub(crate) async fn start(&mut self, lifetime: Duration) { in start()
43 let timer = tokio::time::sleep(lifetime); in start()
78 pub(crate) async fn refresh(&self, lifetime: Duration) { in refresh()
80 let _ = tx.send(lifetime).await; in refresh()
H A Dmod.rs157 pub async fn add_channel_bind(&self, mut c: ChannelBind, lifetime: Duration) -> Result<()> { in add_channel_bind()
175 cb.refresh(lifetime).await; in add_channel_bind()
188 c.start(lifetime).await; in add_channel_bind()
266 pub async fn start(&self, lifetime: Duration) { in start()
275 let timer = tokio::time::sleep(lifetime); in start()
310 pub async fn refresh(&self, lifetime: Duration) { in refresh()
313 let _ = tx.send(lifetime).await; in refresh()
H A Dallocation_manager.rs87 lifetime: Duration, in create_allocation()
90 if lifetime == Duration::from_secs(0) { in create_allocation()
113 a.start(lifetime).await; in create_allocation()
H A Dallocation_test.rs3 use crate::proto::lifetime::DEFAULT_LIFETIME;
/webrtc/turn/src/server/request/
H A Drequest_test.rs15 let lifetime = Lifetime(Duration::from_secs(5)); in test_allocation_lifetime_parsing() localVariable
25 lifetime.add_to(&mut m)?; in test_allocation_lifetime_parsing()
29 lifetime_duration, lifetime.0, in test_allocation_lifetime_parsing()
38 let lifetime = Lifetime(MAXIMUM_ALLOCATION_LIFETIME * 2); in test_allocation_lifetime_overflow() localVariable
41 lifetime.add_to(&mut m2)?; in test_allocation_lifetime_overflow()
/webrtc/turn/src/client/
H A Drelay_conn.rs58 pub(crate) lifetime: Duration, field
70 lifetime: Duration, field
85 log::debug!("initial lifetime: {} seconds", config.lifetime.as_secs()); in new()
203 lifetime: config.lifetime, in new()
461 lifetime: Duration, in refresh_allocation()
471 Box::new(proto::lifetime::Lifetime(lifetime)), in refresh_allocation()
509 let mut updated_lifetime = proto::lifetime::Lifetime::default(); in refresh_allocation()
512 self.lifetime = updated_lifetime.0; in refresh_allocation()
513 log::debug!("updated lifetime: {} seconds", self.lifetime.as_secs()); in refresh_allocation()
589 let lifetime = self.lifetime; in on_timeout() localVariable
[all …]
H A Dmod.rs12 chandata::*, data::*, lifetime::*, peeraddr::*, relayaddr::*, reqtrans::*, PROTO_UDP,
555 let mut lifetime = Lifetime::default(); in allocate() localVariable
556 lifetime.get_from(&res)?; in allocate()
569 lifetime: lifetime.0, in allocate()
/webrtc/turn/src/allocation/channel_bind/
H A Dchannel_bind_test.rs10 async fn create_channel_bind(lifetime: Duration) -> Result<Allocation> { in create_channel_bind()
26 a.add_channel_bind(c, lifetime).await?; in create_channel_bind()
/webrtc/turn/src/proto/
H A Dmod.rs10 pub mod lifetime; module
/webrtc/turn/src/allocation/allocation_manager/
H A Dallocation_manager_test.rs7 proto::lifetime::DEFAULT_LIFETIME,
248 let lifetime = Duration::from_millis(100); in test_allocation_timeout() localVariable
258 lifetime, in test_allocation_timeout()
275 tokio::time::sleep(lifetime + Duration::from_millis(100)).await; in test_allocation_timeout()
/webrtc/turn/src/client/relay_conn/
H A Drelay_conn_test.rs54 lifetime: Duration::from_secs(0), in test_relay_conn()
/webrtc/turn/src/server/
H A Drequest.rs14 use crate::proto::lifetime::*;
881 let mut lifetime = Lifetime::default(); in allocation_lifetime() localVariable
882 if lifetime.get_from(m).is_ok() && lifetime.0 < MAXIMUM_ALLOCATION_LIFETIME { in allocation_lifetime()
883 lifetime_duration = lifetime.0; in allocation_lifetime()
H A Dmod.rs11 proto::lifetime::DEFAULT_LIFETIME,
/webrtc/turn/benches/
H A Dbench.rs8 use turn::proto::lifetime::Lifetime;