Skip to main content

UNKNOWN

Constant UNKNOWN 

Source
pub const UNKNOWN: &str = "Unknown";
Expand description

Port type constants for identifying serial port types

These constants are used to identify the type of serial port when listing available ports.

ยงExample

use serialplugin_core::state::{USB, BLUETOOTH, PCI, UNKNOWN};

let port_type = USB;
match port_type {
    USB => println!("USB serial port"),
    BLUETOOTH => println!("Bluetooth serial port"),
    PCI => println!("PCI serial port"),
    _ => println!("Unknown port type"),
}

Unknown port type