pub struct SecondaryDeviceAttributes {
pub device_type: DeviceType,
pub firmware_version: u16,
pub rom_cartridge: u16,
}Expand description
Secondary device attributes (DA2) response data.
Returned as part of DeviceAttributes in response to a CSI > c query.
Response format: CSI > Pp ; Pv ; Pc c
Fields§
§device_type: DeviceTypeTerminal type identifier (Pp).
firmware_version: u16Firmware/patch version number (Pv).
rom_cartridge: u16ROM cartridge registration number (Pc). Always 0 for emulators.
Trait Implementations§
Source§impl Clone for SecondaryDeviceAttributes
impl Clone for SecondaryDeviceAttributes
Source§fn clone(&self) -> SecondaryDeviceAttributes
fn clone(&self) -> SecondaryDeviceAttributes
Returns a duplicate 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 SecondaryDeviceAttributes
impl Debug for SecondaryDeviceAttributes
Source§impl From<SecondaryDeviceAttributes> for GhosttyDeviceAttributesSecondary
impl From<SecondaryDeviceAttributes> for GhosttyDeviceAttributesSecondary
Source§fn from(value: SecondaryDeviceAttributes) -> Self
fn from(value: SecondaryDeviceAttributes) -> Self
Converts to this type from the input type.
impl Copy for SecondaryDeviceAttributes
Auto Trait Implementations§
impl Freeze for SecondaryDeviceAttributes
impl RefUnwindSafe for SecondaryDeviceAttributes
impl Send for SecondaryDeviceAttributes
impl Sync for SecondaryDeviceAttributes
impl Unpin for SecondaryDeviceAttributes
impl UnsafeUnpin for SecondaryDeviceAttributes
impl UnwindSafe for SecondaryDeviceAttributes
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