pub enum TriggerParameters {
Interrupt {
interrupt_type: WHV_INTERRUPT_TYPE,
destination_mode: WHV_INTERRUPT_DESTINATION_MODE,
trigger_mode: WHV_INTERRUPT_TRIGGER_MODE,
destination: u32,
vector: u32,
},
SynicEvent {
vp_index: u32,
sint: u8,
flag: u16,
},
DeviceInterrupt {
id: u64,
address: u64,
data: u32,
},
}
Variants§
Interrupt
Fields
§
interrupt_type: WHV_INTERRUPT_TYPE
§
destination_mode: WHV_INTERRUPT_DESTINATION_MODE
§
trigger_mode: WHV_INTERRUPT_TRIGGER_MODE
SynicEvent
DeviceInterrupt
Trait Implementations§
Source§impl Clone for TriggerParameters
impl Clone for TriggerParameters
Source§fn clone(&self) -> TriggerParameters
fn clone(&self) -> TriggerParameters
Returns a copy of the value. Read more
1.0.0 · 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 TriggerParameters
impl Debug for TriggerParameters
Source§impl From<TriggerParameters> for WHV_TRIGGER_PARAMETERS
impl From<TriggerParameters> for WHV_TRIGGER_PARAMETERS
Source§fn from(p: TriggerParameters) -> Self
fn from(p: TriggerParameters) -> Self
Converts to this type from the input type.
impl Copy for TriggerParameters
Auto Trait Implementations§
impl Freeze for TriggerParameters
impl RefUnwindSafe for TriggerParameters
impl Send for TriggerParameters
impl Sync for TriggerParameters
impl Unpin for TriggerParameters
impl UnwindSafe for TriggerParameters
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