[][src]Struct uart_16550::SerialPort

pub struct SerialPort { /* fields omitted */ }

An interface to a serial port that allows sending out individual bytes.

Methods

impl SerialPort[src]

pub const unsafe fn new(base: u16) -> SerialPort[src]

Creates a new serial port interface on the given I/O port.

This function is unsafe because the caller must ensure that the given base address really points to a serial port device.

pub fn init(&mut self)[src]

Initializes the serial port.

pub fn send(&mut self, data: u8)[src]

Sends a byte on the serial port.

Trait Implementations

impl Write for SerialPort[src]

default fn write_char(&mut self, c: char) -> Result<(), Error>
1.1.0
[src]

Writes a [char] into this writer, returning whether the write succeeded. Read more

default fn write_fmt(&mut self, args: Arguments) -> Result<(), Error>
1.0.0
[src]

Glue for usage of the [write!] macro with implementors of this trait. Read more

Auto Trait Implementations

impl Send for SerialPort

impl Sync for SerialPort

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]