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. Strategies that query
a longer window (e.g.
PredictiveParking::with_window_ticks
with a value greater than the default) will silently see only the
last DEFAULT_ARRIVAL_WINDOW_TICKS unless this retention is
widened via Simulation::set_arrival_log_retention_ticks.
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