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 const fn new(
conformance_level: ConformanceLevel,
features: &[DeviceAttributeFeature],
) -> Self
pub const fn new( conformance_level: ConformanceLevel, features: &[DeviceAttributeFeature], ) -> Self
Construct primary device attributes from a conformance level and an array of device attribute features.
Prefer defining primary device attributes as a const when the feature
list is statically known. That makes the 64-feature limit fail during
compilation instead of panicking at runtime.
§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 (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 PrimaryDeviceAttributes
Source§impl Debug for PrimaryDeviceAttributes
impl Debug for PrimaryDeviceAttributes
Source§impl From<PrimaryDeviceAttributes> for DeviceAttributesPrimary
impl From<PrimaryDeviceAttributes> for DeviceAttributesPrimary
Source§fn from(value: PrimaryDeviceAttributes) -> Self
fn from(value: PrimaryDeviceAttributes) -> Self
Converts to this type from the input type.
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