RpcDevice

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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"