pub enum PortKind {
Device,
Looped,
Paired,
Simulated,
Scripted,
}Expand description
What is on the other end of a SerialPort.
Variants§
Device
The kernel’s serial device, with a real line on the other end.
Looped
The port’s own output, looped back to its input.
Paired
The other end of a null-modem pair.
Simulated
A simulated device that answers each write.
Scripted
A script of the writes a driver is expected to make.
Trait Implementations§
impl Copy for PortKind
impl Eq for PortKind
impl StructuralPartialEq for PortKind
Auto Trait Implementations§
impl Freeze for PortKind
impl RefUnwindSafe for PortKind
impl Send for PortKind
impl Sync for PortKind
impl Unpin for PortKind
impl UnsafeUnpin for PortKind
impl UnwindSafe for PortKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more