Trait oc2_hlapi::device::RpcDevice

source ·
pub trait RpcDevice {
    const IDENTIFIER: &'static str;

    // Required methods
    fn new(id: Uuid, bus: &DeviceBus) -> Self;
    fn id(&self) -> Uuid;
    fn bus(&self) -> &DeviceBus;
}

Required Associated Constants§

source

const IDENTIFIER: &'static str

Required Methods§

source

fn new(id: Uuid, bus: &DeviceBus) -> Self

source

fn id(&self) -> Uuid

source

fn bus(&self) -> &DeviceBus

Object Safety§

This trait is not object safe.

Implementors§

source§

impl RpcDevice for BlockOperationsModule

source§

const IDENTIFIER: &'static str = "block_operations"

source§

impl RpcDevice for FileImportExportCard

source§

const IDENTIFIER: &'static str = "file_import_export"

source§

impl RpcDevice for InventoryOperationsModule

source§

const IDENTIFIER: &'static str = "inventory_operations"

source§

impl RpcDevice for RedstoneDevice

source§

const IDENTIFIER: &'static str = "redstone"

source§

impl RpcDevice for RobotDevice

source§

const IDENTIFIER: &'static str = "robot"

source§

impl RpcDevice for SoundCard

source§

const IDENTIFIER: &'static str = "sound"