#[repr(C)]pub struct DeviceAttributesPrimary {
pub conformance_level: u16,
pub features: [u16; 64],
pub num_features: usize,
}Expand description
Primary device attributes (DA1) response data.
Returned as part of GhosttyDeviceAttributes in response to a CSI c query. The conformance_level is the Pp parameter and features contains the Ps feature codes.
Fields§
§conformance_level: u16Conformance level (Pp parameter). E.g. 62 for VT220.
features: [u16; 64]DA1 feature codes. Only the first num_features entries are valid.
num_features: usizeNumber of valid entries in the features array.
Trait Implementations§
Source§impl Clone for DeviceAttributesPrimary
impl Clone for DeviceAttributesPrimary
Source§fn clone(&self) -> DeviceAttributesPrimary
fn clone(&self) -> DeviceAttributesPrimary
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 DeviceAttributesPrimary
Source§impl Debug for DeviceAttributesPrimary
impl Debug for DeviceAttributesPrimary
Auto Trait Implementations§
impl Freeze for DeviceAttributesPrimary
impl RefUnwindSafe for DeviceAttributesPrimary
impl Send for DeviceAttributesPrimary
impl Sync for DeviceAttributesPrimary
impl Unpin for DeviceAttributesPrimary
impl UnsafeUnpin for DeviceAttributesPrimary
impl UnwindSafe for DeviceAttributesPrimary
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