pub struct AllowedPciDevice {
pub vendor_id: Option<u16>,
pub device_id: Option<u16>,
pub revision_id: Option<u8>,
pub base_class: Option<u8>,
pub sub_class: Option<u8>,
pub prog_if: Option<u8>,
}Expand description
A PCI device that OpenHCL’s VPCI relay may expose to VTL0: one with every ID that is set.
Fields§
§vendor_id: Option<u16>Vendor ID.
device_id: Option<u16>Device ID.
revision_id: Option<u8>Revision ID.
base_class: Option<u8>Base class code.
sub_class: Option<u8>Subclass code.
prog_if: Option<u8>Programming interface.
Trait Implementations§
Source§impl Clone for AllowedPciDevice
impl Clone for AllowedPciDevice
Source§fn clone(&self) -> AllowedPciDevice
fn clone(&self) -> AllowedPciDevice
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 Debug for AllowedPciDevice
impl Debug for AllowedPciDevice
Source§impl Default for AllowedPciDevice
impl Default for AllowedPciDevice
Source§fn default() -> AllowedPciDevice
fn default() -> AllowedPciDevice
Returns the “default value” for a type. Read more
Source§impl DefaultEncoding for AllowedPciDevice
impl DefaultEncoding for AllowedPciDevice
Source§impl DescribeTable for AllowedPciDevice
impl DescribeTable for AllowedPciDevice
Source§const DESCRIPTION: MessageDescription<'static>
const DESCRIPTION: MessageDescription<'static>
The protobuf message description for this type.
Source§impl<'de> Deserialize<'de> for AllowedPciDevice
impl<'de> Deserialize<'de> for AllowedPciDevice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Inspect for AllowedPciDevice
impl Inspect for AllowedPciDevice
Source§impl PartialEq for AllowedPciDevice
impl PartialEq for AllowedPciDevice
Source§fn eq(&self, other: &AllowedPciDevice) -> bool
fn eq(&self, other: &AllowedPciDevice) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'encoding, AnyR: 'static> StructDecodeMetadata<'encoding, AnyR> for AllowedPciDevice
impl<'encoding, AnyR: 'static> StructDecodeMetadata<'encoding, AnyR> for AllowedPciDevice
Source§impl<AnyR: 'static> StructEncodeMetadata<AnyR> for AllowedPciDevice
impl<AnyR: 'static> StructEncodeMetadata<AnyR> for AllowedPciDevice
Source§impl StructMetadata for AllowedPciDevice
impl StructMetadata for AllowedPciDevice
impl StructuralPartialEq for AllowedPciDevice
Auto Trait Implementations§
impl Freeze for AllowedPciDevice
impl RefUnwindSafe for AllowedPciDevice
impl Send for AllowedPciDevice
impl Sync for AllowedPciDevice
impl Unpin for AllowedPciDevice
impl UnsafeUnpin for AllowedPciDevice
impl UnwindSafe for AllowedPciDevice
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> DescribedProtobuf for Twhere
T: DefaultEncoding + Protobuf,
<T as DefaultEncoding>::Encoding: DescribeMessage<T>,
impl<T> DescribedProtobuf for Twhere
T: DefaultEncoding + Protobuf,
<T as DefaultEncoding>::Encoding: DescribeMessage<T>,
§const DESCRIPTION: MessageDescription<'static>
const DESCRIPTION: MessageDescription<'static>
The message description.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> Protobuf for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: MessageEncode<T, NoResources> + for<'a> MessageDecode<'a, T, NoResources> + FieldEncode<T, NoResources> + for<'a> FieldDecode<'a, T, NoResources>,
impl<T> Protobuf for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: MessageEncode<T, NoResources> + for<'a> MessageDecode<'a, T, NoResources> + FieldEncode<T, NoResources> + for<'a> FieldDecode<'a, T, NoResources>,
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message].