#[repr(C)]pub struct InterruptModes {
pub has_legacy: bool,
pub msi_count: u8,
pub msix_count: Uint16,
}Expand description
The wire type corresponding to InterruptModes.
Fields§
§has_legacy: bool§msi_count: u8§msix_count: Uint16Trait Implementations§
Source§impl Clone for InterruptModes
impl Clone for InterruptModes
Source§fn clone(&self) -> InterruptModes
fn clone(&self) -> InterruptModes
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 Constrained for InterruptModes
impl Constrained for InterruptModes
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, InterruptModes>,
_: <InterruptModes as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, InterruptModes>, _: <InterruptModes as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for InterruptModes
impl Debug for InterruptModes
Source§impl<___D> Decode<___D> for InterruptModeswhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for InterruptModeswhere
___D: InternalHandleDecoder + ?Sized,
Source§impl<'a, ___E> Encode<InterruptModes, ___E> for &'a InterruptModeswhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<InterruptModes, ___E> for &'a InterruptModeswhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<InterruptModes>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<InterruptModes>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<InterruptModes, ___E> for InterruptModeswhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<InterruptModes, ___E> for InterruptModeswhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<InterruptModes, InterruptModes>
const COPY_OPTIMIZATION: CopyOptimization<InterruptModes, InterruptModes>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<InterruptModes>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<InterruptModes>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<___E, T0, T1, T2> Encode<InterruptModes, ___E> for InterruptModes<T0, T1, T2>
impl<___E, T0, T1, T2> Encode<InterruptModes, ___E> for InterruptModes<T0, T1, T2>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<InterruptModes>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<InterruptModes>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl FromWire<InterruptModes> for InterruptModes
impl FromWire<InterruptModes> for InterruptModes
Source§const COPY_OPTIMIZATION: CopyOptimization<InterruptModes, InterruptModes>
const COPY_OPTIMIZATION: CopyOptimization<InterruptModes, InterruptModes>
Source§fn from_wire(wire: InterruptModes) -> InterruptModes
fn from_wire(wire: InterruptModes) -> InterruptModes
Converts the given owned value to this type.
Source§impl FromWireRef<InterruptModes> for InterruptModes
impl FromWireRef<InterruptModes> for InterruptModes
Source§fn from_wire_ref(wire: &InterruptModes) -> InterruptModes
fn from_wire_ref(wire: &InterruptModes) -> InterruptModes
Converts the given reference to this type.
Source§impl IntoNatural for InterruptModes
impl IntoNatural for InterruptModes
Source§type Natural = InterruptModes
type Natural = InterruptModes
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for InterruptModes
impl Wire for InterruptModes
Source§type Narrowed<'de> = InterruptModes
type Narrowed<'de> = InterruptModes
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<InterruptModes>)
fn zero_padding(out_: &mut MaybeUninit<InterruptModes>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for InterruptModes
impl RefUnwindSafe for InterruptModes
impl Send for InterruptModes
impl Sync for InterruptModes
impl Unpin for InterruptModes
impl UnsafeUnpin for InterruptModes
impl UnwindSafe for InterruptModes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]