pub struct TrafficManagement {
pub priority: Option<TrafficPriority>,
pub at_intersection: Option<bool>,
pub intersection_id: Option<String>,
pub has_right_of_way: Option<bool>,
pub waiting_for: Option<Vec<String>>,
pub wait_time_sec: Option<f64>,
pub reserved_segments: Option<Vec<String>>,
pub deadlock_detected: Option<bool>,
}Expand description
Traffic management information.
Fields§
§priority: Option<TrafficPriority>Current priority
at_intersection: Option<bool>Whether at intersection
intersection_id: Option<String>Intersection ID
has_right_of_way: Option<bool>Whether has right of way
waiting_for: Option<Vec<String>>Waiting for robot IDs
wait_time_sec: Option<f64>Wait time (seconds)
reserved_segments: Option<Vec<String>>Reserved path segments
deadlock_detected: Option<bool>Deadlock detected
Trait Implementations§
Source§impl Clone for TrafficManagement
impl Clone for TrafficManagement
Source§fn clone(&self) -> TrafficManagement
fn clone(&self) -> TrafficManagement
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 TrafficManagement
impl Debug for TrafficManagement
Source§impl Default for TrafficManagement
impl Default for TrafficManagement
Source§fn default() -> TrafficManagement
fn default() -> TrafficManagement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrafficManagement
impl<'de> Deserialize<'de> for TrafficManagement
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
Auto Trait Implementations§
impl Freeze for TrafficManagement
impl RefUnwindSafe for TrafficManagement
impl Send for TrafficManagement
impl Sync for TrafficManagement
impl Unpin for TrafficManagement
impl UnwindSafe for TrafficManagement
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