pub trait SerialDevice {
    // Required method
    fn new(
        protection_type: ProtectionType,
        interrupt_evt: Event,
        input: Option<Box<dyn SerialInput>>,
        output: Option<Box<dyn Write + Send>>,
        sync: Option<Box<dyn FileSync + Send>>,
        options: SerialOptions,
        keep_rds: Vec<RawDescriptor>
    ) -> Self;
}
Expand description

Abstraction over serial-like devices that can be created given an event and optional input and output streams.

Required Methods§

source

fn new( protection_type: ProtectionType, interrupt_evt: Event, input: Option<Box<dyn SerialInput>>, output: Option<Box<dyn Write + Send>>, sync: Option<Box<dyn FileSync + Send>>, options: SerialOptions, keep_rds: Vec<RawDescriptor> ) -> Self

Object Safety§

This trait is not object safe.

Implementors§