pub enum SpeedConstraint {
Unconstrained,
Leader {
leader: u64,
gap_m: f64,
},
BlockedExit {
remaining_m: f64,
},
}Expand description
Why a policy constrained an agent’s speed.
Variants§
Unconstrained
No downstream or leader constraint applied.
Leader
A leading agent capped this agent’s speed.
Fields
BlockedExit
The downstream end of the link is blocked.
Trait Implementations§
Source§impl Clone for SpeedConstraint
impl Clone for SpeedConstraint
Source§fn clone(&self) -> SpeedConstraint
fn clone(&self) -> SpeedConstraint
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 SpeedConstraint
impl Debug for SpeedConstraint
Source§impl PartialEq for SpeedConstraint
impl PartialEq for SpeedConstraint
impl Copy for SpeedConstraint
impl StructuralPartialEq for SpeedConstraint
Auto Trait Implementations§
impl Freeze for SpeedConstraint
impl RefUnwindSafe for SpeedConstraint
impl Send for SpeedConstraint
impl Sync for SpeedConstraint
impl Unpin for SpeedConstraint
impl UnsafeUnpin for SpeedConstraint
impl UnwindSafe for SpeedConstraint
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