pub enum SerialHardware {
Serial,
VirtioConsole,
Debugcon,
}Expand description
Serial device hardware types
Variants§
Serial
Standard PC-style (8250/16550 compatible) UART
VirtioConsole
virtio-console device
Debugcon
Bochs style debug port
Trait Implementations§
Source§impl Clone for SerialHardware
impl Clone for SerialHardware
Source§fn clone(&self) -> SerialHardware
fn clone(&self) -> SerialHardware
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerialHardware
impl Debug for SerialHardware
Source§impl Default for SerialHardware
impl Default for SerialHardware
Source§impl<'de> Deserialize<'de> for SerialHardware
impl<'de> Deserialize<'de> for SerialHardware
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SerialHardware
impl Display for SerialHardware
Source§impl Ord for SerialHardware
impl Ord for SerialHardware
Source§fn cmp(&self, other: &SerialHardware) -> Ordering
fn cmp(&self, other: &SerialHardware) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SerialHardware
impl PartialEq for SerialHardware
Source§impl PartialOrd for SerialHardware
impl PartialOrd for SerialHardware
Source§impl Serialize for SerialHardware
impl Serialize for SerialHardware
impl Copy for SerialHardware
impl Eq for SerialHardware
impl StructuralPartialEq for SerialHardware
Auto Trait Implementations§
impl Freeze for SerialHardware
impl RefUnwindSafe for SerialHardware
impl Send for SerialHardware
impl Sync for SerialHardware
impl Unpin for SerialHardware
impl UnwindSafe for SerialHardware
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