#[non_exhaustive]pub struct SerialPort {
pub disable: bool,
pub insecure: bool,
pub log_out_on_disconnect: bool,
pub terminal_type: Option<String>,
pub port_type: Option<String>,
}Expand description
A system ports console or auxiliary block.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.disable: bool§insecure: bool§log_out_on_disconnect: bool§terminal_type: Option<String>From type, e.g. vt100.
port_type: Option<String>mini-usb or rj45; only on the auxiliary port.
Trait Implementations§
Source§impl Clone for SerialPort
impl Clone for SerialPort
Source§impl Debug for SerialPort
impl Debug for SerialPort
impl Eq for SerialPort
Source§impl PartialEq for SerialPort
impl PartialEq for SerialPort
impl StructuralPartialEq for SerialPort
Auto Trait Implementations§
impl Forget for SerialPort
impl Freeze for SerialPort
impl Move for SerialPort
impl RefUnwindSafe for SerialPort
impl Send for SerialPort
impl Sync for SerialPort
impl Unpin for SerialPort
impl UnsafeUnpin for SerialPort
impl UnwindSafe for SerialPort
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