pub struct PrimaryDeviceAttributes(/* private fields */);Expand description
Primary device attributes (DA1) response data.
Returned as part of DeviceAttributes in response to a CSI c query.
Implementations§
Source§impl PrimaryDeviceAttributes
impl PrimaryDeviceAttributes
Sourcepub fn new<const N: usize>(
conformance_level: ConformanceLevel,
features: [DeviceAttributeFeature; N],
) -> Self
pub fn new<const N: usize>( conformance_level: ConformanceLevel, features: [DeviceAttributeFeature; N], ) -> Self
Construct primary device attributes from a conformance level and an array of device attribute features.
§Panics
Panics when more than 64 features are given.
Trait Implementations§
Source§impl Clone for PrimaryDeviceAttributes
impl Clone for PrimaryDeviceAttributes
Source§fn clone(&self) -> PrimaryDeviceAttributes
fn clone(&self) -> PrimaryDeviceAttributes
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 PrimaryDeviceAttributes
impl Debug for PrimaryDeviceAttributes
Source§impl From<PrimaryDeviceAttributes> for GhosttyDeviceAttributesPrimary
impl From<PrimaryDeviceAttributes> for GhosttyDeviceAttributesPrimary
Source§fn from(value: PrimaryDeviceAttributes) -> Self
fn from(value: PrimaryDeviceAttributes) -> Self
Converts to this type from the input type.
impl Copy for PrimaryDeviceAttributes
Auto Trait Implementations§
impl Freeze for PrimaryDeviceAttributes
impl RefUnwindSafe for PrimaryDeviceAttributes
impl Send for PrimaryDeviceAttributes
impl Sync for PrimaryDeviceAttributes
impl Unpin for PrimaryDeviceAttributes
impl UnsafeUnpin for PrimaryDeviceAttributes
impl UnwindSafe for PrimaryDeviceAttributes
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