#[repr(C)]pub struct DeviceAttributesSecondary {
pub device_type: u16,
pub firmware_version: u16,
pub rom_cartridge: u16,
}Expand description
Secondary device attributes (DA2) response data.
Returned as part of GhosttyDeviceAttributes in response to a CSI > c query. Response format: CSI > Pp ; Pv ; Pc c
Fields§
§device_type: u16Terminal type identifier (Pp). E.g. 1 for VT220.
firmware_version: u16Firmware/patch version number (Pv).
rom_cartridge: u16ROM cartridge registration number (Pc). Always 0 for emulators.
Trait Implementations§
Source§impl Clone for DeviceAttributesSecondary
impl Clone for DeviceAttributesSecondary
Source§fn clone(&self) -> DeviceAttributesSecondary
fn clone(&self) -> DeviceAttributesSecondary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeviceAttributesSecondary
Source§impl Debug for DeviceAttributesSecondary
impl Debug for DeviceAttributesSecondary
Source§impl Default for DeviceAttributesSecondary
impl Default for DeviceAttributesSecondary
Source§fn default() -> DeviceAttributesSecondary
fn default() -> DeviceAttributesSecondary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceAttributesSecondary
impl RefUnwindSafe for DeviceAttributesSecondary
impl Send for DeviceAttributesSecondary
impl Sync for DeviceAttributesSecondary
impl Unpin for DeviceAttributesSecondary
impl UnsafeUnpin for DeviceAttributesSecondary
impl UnwindSafe for DeviceAttributesSecondary
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