pub enum ControllerConnection {
Offline,
Tethered,
VexNet,
}
Expand description
Represents the state of a controller’s connection.
Variants§
Offline
No controller is connected.
Tethered
Controller is tethered through a wired Smart Port connection.
VexNet
Controller is wirelessly connected over a VEXNet radio
Trait Implementations§
Source§impl Clone for ControllerConnection
impl Clone for ControllerConnection
Source§fn clone(&self) -> ControllerConnection
fn clone(&self) -> ControllerConnection
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 ControllerConnection
impl Debug for ControllerConnection
Source§impl From<ControllerConnection> for V5_ControllerStatus
impl From<ControllerConnection> for V5_ControllerStatus
Source§fn from(value: ControllerConnection) -> Self
fn from(value: ControllerConnection) -> Self
Converts to this type from the input type.
Source§impl From<V5_ControllerStatus> for ControllerConnection
impl From<V5_ControllerStatus> for ControllerConnection
Source§fn from(value: V5_ControllerStatus) -> Self
fn from(value: V5_ControllerStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ControllerConnection
impl PartialEq for ControllerConnection
impl Copy for ControllerConnection
impl Eq for ControllerConnection
impl StructuralPartialEq for ControllerConnection
Auto Trait Implementations§
impl Freeze for ControllerConnection
impl RefUnwindSafe for ControllerConnection
impl Send for ControllerConnection
impl Sync for ControllerConnection
impl Unpin for ControllerConnection
impl UnwindSafe for ControllerConnection
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