pub struct RoomConfig {
pub idle_window: Duration,
pub presence_ttl: Duration,
pub sweep_interval: Duration,
}Expand description
Tunables for room lifecycle. RoomConfig::default uses production values;
tests construct short windows via RoomRegistry::with_config.
Fields§
§idle_window: DurationZero-member duration after which a room hibernates.
presence_ttl: DurationPresence heartbeat TTL.
sweep_interval: DurationActor sweep cadence (presence reaping + hibernation check).
Trait Implementations§
Source§impl Clone for RoomConfig
impl Clone for RoomConfig
Source§fn clone(&self) -> RoomConfig
fn clone(&self) -> RoomConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoomConfig
Source§impl Debug for RoomConfig
impl Debug for RoomConfig
Auto Trait Implementations§
impl Freeze for RoomConfig
impl RefUnwindSafe for RoomConfig
impl Send for RoomConfig
impl Sync for RoomConfig
impl Unpin for RoomConfig
impl UnsafeUnpin for RoomConfig
impl UnwindSafe for RoomConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more