Trait serial2::IntoSettings[][src]

pub trait IntoSettings {
    fn apply_to_settings(self, settings: &mut Settings) -> Result<()>;
}
Expand description

Trait for objects that can configure a serial port.

This trait is also implemented for u32. That implementation also configures a char size of 8 bits, one stop bit, no parity checks and disables flow control.

If you need more control, you can use a Fn(Settings) -> std::io::Result<Settings>.

Required methods

Apply the configuration to an existing Settings struct.

Implementations on Foreign Types

Implementors