Struct libbpf_rs::btf::types::EnumMember
source · pub struct EnumMember<'btf> {
pub name: Option<&'btf CStr>,
pub value: i32,
}
Expand description
A member of an Enum
Fields§
§name: Option<&'btf CStr>
The name of this enum variant.
value: i32
The numeric value of this enum variant.
Trait Implementations§
Auto Trait Implementations§
impl<'btf> Freeze for EnumMember<'btf>
impl<'btf> RefUnwindSafe for EnumMember<'btf>
impl<'btf> Send for EnumMember<'btf>
impl<'btf> Sync for EnumMember<'btf>
impl<'btf> Unpin for EnumMember<'btf>
impl<'btf> UnwindSafe for EnumMember<'btf>
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