pub struct StationInterfaceVTable { /* private fields */ }Expand description
A struct that defines a platform specific user control station interface for user code.
Implementations§
Source§impl StationInterfaceVTable
impl StationInterfaceVTable
Sourcepub fn send_console_line_error(
&self,
line: &str,
location: &str,
callstack: &str,
)
pub fn send_console_line_error( &self, line: &str, location: &str, callstack: &str, )
Will send an error message to the driver station console, driver station has to support error messages.
Sourcepub fn send_console_line_warn(&self, line: &str, location: &str)
pub fn send_console_line_warn(&self, line: &str, location: &str)
Will send a warning message to the driver station console, if the driver station does not support warnings it will be sent as an error.
Sourcepub fn send_console_line_info(&self, line: &str, location: &str)
pub fn send_console_line_info(&self, line: &str, location: &str)
Will send an info message to the driver station console, driver station has to support info messages.
Sourcepub fn send_console_line_debug(&self, line: &str, location: &str)
pub fn send_console_line_debug(&self, line: &str, location: &str)
Will send a debug message to the driver station console, if the driver station does not support debug messages it will be ignored.
Sourcepub fn refresh(&self)
pub fn refresh(&self)
Should update all process local station data from the driver station latest values.
Sourcepub fn get_station_data(&self) -> StationData
pub fn get_station_data(&self) -> StationData
Should return the latest station data.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns if the latest station data declares the robot enabled.
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Returns if the latest station data declares the robot disabled.
Sourcepub fn is_estopped(&self) -> bool
pub fn is_estopped(&self) -> bool
Returns if the latest station data declares the robot estopped.
Sourcepub fn is_teleop(&self) -> bool
pub fn is_teleop(&self) -> bool
Returns if the latest station data declares the robot in teleop mode.
Sourcepub fn is_auto(&self) -> bool
pub fn is_auto(&self) -> bool
Returns if the latest station data declares the robot in auto mode.
Sourcepub fn is_test(&self) -> bool
pub fn is_test(&self) -> bool
Returns if the latest station data declares the robot in test mode.
Sourcepub fn is_fms_attached(&self) -> bool
pub fn is_fms_attached(&self) -> bool
Returns if the latest station data declares the robot is attached to the FMS.
Sourcepub fn is_station_attached(&self) -> bool
pub fn is_station_attached(&self) -> bool
Returns if the latest station data declares the robot is attached to a station.
Sourcepub fn get_station_team_number(&self) -> u16
pub fn get_station_team_number(&self) -> u16
Returns the team number of the latest station data.
Trait Implementations§
Source§impl Clone for StationInterfaceVTable
impl Clone for StationInterfaceVTable
Source§fn clone(&self) -> StationInterfaceVTable
fn clone(&self) -> StationInterfaceVTable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StationInterfaceVTable
Auto Trait Implementations§
impl Freeze for StationInterfaceVTable
impl RefUnwindSafe for StationInterfaceVTable
impl Send for StationInterfaceVTable
impl Sync for StationInterfaceVTable
impl Unpin for StationInterfaceVTable
impl UnsafeUnpin for StationInterfaceVTable
impl UnwindSafe for StationInterfaceVTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.