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 smartport 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 copy 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 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
source§fn eq(&self, other: &ControllerConnection) -> bool
fn eq(&self, other: &ControllerConnection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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