pub struct ArrivalLogRetention(pub u64);Expand description
World resource controlling how far back the ArrivalLog retains
entries before Simulation::advance_tick prunes them.
Defaults to DEFAULT_ARRIVAL_WINDOW_TICKS.
Simulation::set_reposition
auto-widens this to the installed strategy’s
min_arrival_log_window
so e.g. PredictiveParking::with_window_ticks(50_000) keeps
50_000 ticks of arrivals retained without a separate setter call.
Override manually via
Simulation::set_arrival_log_retention_ticks
when retention should differ from any strategy’s window (e.g. tests
or custom consumers reading the log directly).
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for ArrivalLogRetention
impl Clone for ArrivalLogRetention
Source§fn clone(&self) -> ArrivalLogRetention
fn clone(&self) -> ArrivalLogRetention
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArrivalLogRetention
impl Debug for ArrivalLogRetention
Source§impl Default for ArrivalLogRetention
impl Default for ArrivalLogRetention
Source§impl<'de> Deserialize<'de> for ArrivalLogRetention
impl<'de> Deserialize<'de> for ArrivalLogRetention
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ArrivalLogRetention
impl Serialize for ArrivalLogRetention
impl Copy for ArrivalLogRetention
Auto Trait Implementations§
impl Freeze for ArrivalLogRetention
impl RefUnwindSafe for ArrivalLogRetention
impl Send for ArrivalLogRetention
impl Sync for ArrivalLogRetention
impl Unpin for ArrivalLogRetention
impl UnsafeUnpin for ArrivalLogRetention
impl UnwindSafe for ArrivalLogRetention
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