#[repr(C)]pub struct CUdevResource {
pub type_: c_int,
pub internal_padding: [c_uchar; 92],
pub res: [u64; 6],
}Expand description
CUdevResource — 144-byte resource descriptor. Tagged by type_;
the 48-byte union holds the variant-specific payload (CUdevSmResource
for SM). We model the union as a fixed [u64; 6] blob and provide
helpers for the SM case.
Fields§
§type_: c_int§internal_padding: [c_uchar; 92]§res: [u64; 6]Implementations§
Source§impl CUdevResource
impl CUdevResource
Sourcepub fn as_sm(&self) -> CUdevSmResource
pub fn as_sm(&self) -> CUdevSmResource
View the SM-specific payload. Only meaningful when type_ == SM.
Trait Implementations§
Source§impl Clone for CUdevResource
impl Clone for CUdevResource
Source§fn clone(&self) -> CUdevResource
fn clone(&self) -> CUdevResource
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 moreSource§impl Debug for CUdevResource
impl Debug for CUdevResource
Source§impl Default for CUdevResource
impl Default for CUdevResource
impl Copy for CUdevResource
Auto Trait Implementations§
impl Freeze for CUdevResource
impl RefUnwindSafe for CUdevResource
impl Send for CUdevResource
impl Sync for CUdevResource
impl Unpin for CUdevResource
impl UnsafeUnpin for CUdevResource
impl UnwindSafe for CUdevResource
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