Struct cpuio::UnsafePort [] [src]

pub struct UnsafePort<T: InOut> { /* fields omitted */ }

An unsafe I/O port over an arbitrary type supporting the InOut interface.

This version of Port has unsafe read and write functions, and it's appropriate for speaking to hardware that can potentially corrupt memory or cause undefined behavior.

Methods

impl<T: InOut> UnsafePort<T>
[src]

Create a new I/O port.

Read data from the port.

Write data to the port.

Trait Implementations

impl<T: Debug + InOut> Debug for UnsafePort<T>
[src]

Formats the value using the given formatter.