Struct base::sys::linux::acpi_event::AcpiNotifyEvent
source · pub struct AcpiNotifyEvent {
pub device_class: String,
pub bus_id: String,
pub _type: u32,
pub data: u32,
}
Fields§
§device_class: String
§bus_id: String
§_type: u32
§data: u32
Implementations§
source§impl AcpiNotifyEvent
impl AcpiNotifyEvent
sourcepub fn new(netlink_message: NetlinkMessage<'_>) -> Result<Self, AcpiEventError>
pub fn new(netlink_message: NetlinkMessage<'_>) -> Result<Self, AcpiEventError>
Create acpi event by decapsulating it from NetlinkMessage.
Auto Trait Implementations§
impl RefUnwindSafe for AcpiNotifyEvent
impl Send for AcpiNotifyEvent
impl Sync for AcpiNotifyEvent
impl Unpin for AcpiNotifyEvent
impl UnwindSafe for AcpiNotifyEvent
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