#[repr(C, align(8))]pub struct Descriptor {
pub name: [u8; 56],
pub type_: u64,
}Expand description
Binary-stable C-compatible representation of a kernel counter descriptor.
The memory layout of this structure matches Zircon’s counters::Descriptor exactly,
enabling the linker and userspace diagnostic tools to parse Rust-declared counters
seamlessly from the kernel’s binary segments.
Fields§
§name: [u8; 56]§type_: u64Implementations§
Source§impl Descriptor
impl Descriptor
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
impl Copy for Descriptor
Source§impl Debug for Descriptor
impl Debug for Descriptor
impl Eq for Descriptor
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnsafeUnpin for Descriptor
impl UnwindSafe for Descriptor
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)