pub struct Controller {
pub control: Vec1<Control>,
pub id: String,
pub name: Option<String>,
pub sequence: Option<u64>,
pub additional_data: AdditionalData,
}
Expand description
Controllers provides identical states for one or more dynamic signals. Controllers serve as wrappers for the behaviour of a group of signals. Controllers are used for dynamic speed control on motorways, and to control traffic light switching phases.
Fields§
§control: Vec1<Control>
§id: String
Unique ID within database
name: Option<String>
Name of the controller. May be chosen freely.
sequence: Option<u64>
Sequence number (priority) of this controller with respect to other controllers of same logical level
additional_data: AdditionalData
Implementations§
Trait Implementations§
Source§impl Clone for Controller
impl Clone for Controller
Source§fn clone(&self) -> Controller
fn clone(&self) -> Controller
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Controller
impl Debug for Controller
Source§impl PartialEq for Controller
impl PartialEq for Controller
Source§impl<'a, I> TryFrom<ReadContext<'a, I>> for Controller
impl<'a, I> TryFrom<ReadContext<'a, I>> for Controller
impl StructuralPartialEq for Controller
Auto Trait Implementations§
impl Freeze for Controller
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnwindSafe for Controller
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