pub struct IrOpcode {
pub header: Header,
pub opcode: u8,
pub sensor: u8,
}Fields§
§header: Header§opcode: u8§sensor: u8Implementations§
Source§impl IrOpcode
impl IrOpcode
pub const CODE_IR_FORCE_FIELD: u8 = 161u8
pub const CODE_IR_VIRTUAL_WALL: u8 = 162u8
pub const CODE_IR_BUOY_GREEN: u8 = 164u8
pub const CODE_IR_BUOY_RED: u8 = 168u8
pub const CODE_IR_BUOY_BOTH: u8 = 172u8
pub const CODE_IR_EVAC_GREEN_FIELD: u8 = 244u8
pub const CODE_IR_EVAC_RED_FIELD: u8 = 248u8
pub const CODE_IR_EVAC_BOTH_FIELD: u8 = 252u8
pub const SENSOR_OMNI: u8 = 0u8
pub const SENSOR_DIRECTIONAL_FRONT: u8 = 1u8
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IrOpcode
impl<'de> Deserialize<'de> for IrOpcode
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
impl Message for IrOpcode
impl StructuralPartialEq for IrOpcode
Auto Trait Implementations§
impl Freeze for IrOpcode
impl RefUnwindSafe for IrOpcode
impl Send for IrOpcode
impl Sync for IrOpcode
impl Unpin for IrOpcode
impl UnwindSafe for IrOpcode
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