pub struct DeviceAttributes {
pub primary: PrimaryDeviceAttributes,
pub secondary: SecondaryDeviceAttributes,
pub tertiary: TertiaryDeviceAttributes,
}Expand description
Device attributes response data for all three DA levels.
Filled by the Terminal::on_device_attributes callback in response
to CSI c, CSI > c, or CSI = c queries. The terminal uses whichever
sub-struct matches the request type.
Fields§
§primary: PrimaryDeviceAttributesPrimary device attributes (DA1).
secondary: SecondaryDeviceAttributesSecondary device attributes (DA2).
tertiary: TertiaryDeviceAttributesTertiary device attributes (DA3).
Trait Implementations§
Source§impl Clone for DeviceAttributes
impl Clone for DeviceAttributes
Source§fn clone(&self) -> DeviceAttributes
fn clone(&self) -> DeviceAttributes
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 DeviceAttributes
impl Debug for DeviceAttributes
Source§impl From<DeviceAttributes> for GhosttyDeviceAttributes
impl From<DeviceAttributes> for GhosttyDeviceAttributes
Source§fn from(value: DeviceAttributes) -> Self
fn from(value: DeviceAttributes) -> Self
Converts to this type from the input type.
impl Copy for DeviceAttributes
Auto Trait Implementations§
impl Freeze for DeviceAttributes
impl RefUnwindSafe for DeviceAttributes
impl Send for DeviceAttributes
impl Sync for DeviceAttributes
impl Unpin for DeviceAttributes
impl UnsafeUnpin for DeviceAttributes
impl UnwindSafe for DeviceAttributes
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