Trait rstubs::arch::io::PortValue

source ·
pub trait PortValue: Sized + Copy + From<Self::I> + Into<Self::I> {
    type I: PortRaw;
}
Expand description

A value that can be written/read to/from IO ports.

It has to be convertible from/into the raw integer specified in PortValue::I.

Required Associated Types§

source

type I: PortRaw

The underlying raw integer type, which can be [u8], [u16], or [u32].

Object Safety§

This trait is not object safe.

Implementors§

source§

impl PortValue for FifoCtl

§

type I = u8

source§

impl PortValue for LineCtl

§

type I = u8

source§

impl PortValue for LineStatus

§

type I = u8

source§

impl PortValue for ModemCtl

§

type I = u8

source§

impl PortValue for Ctrl

§

type I = u8

source§

impl PortValue for Mode

§

type I = u8

source§

impl<I: PortRaw> PortValue for I

§

type I = I