pub enum Descriptor {
PciVid(u16),
Iana(u32),
Uuid(Uuid),
PciDid(u16),
PciSubVid(u16),
PciSubDid(u16),
Vendor {
title: Option<DescriptorString>,
data: Vec<u8>,
},
}Expand description
A device descriptor
Variants§
PciVid(u16)
PCI Vendor ID
Iana(u32)
IANA Enterprise ID
Uuid(Uuid)
UUID
PciDid(u16)
PCI Device ID
PciSubVid(u16)
PCI Subsystem Vendor ID
PciSubDid(u16)
PCI Subsystem Device ID
Vendor
Vendor Defined
Implementations§
Source§impl Descriptor
impl Descriptor
pub fn parse_pcivid(buf: &[u8]) -> IResult<&[u8], Self>
pub fn parse_iana(buf: &[u8]) -> IResult<&[u8], Self>
pub fn parse_uuid(buf: &[u8]) -> IResult<&[u8], Self>
pub fn parse_pcidid(buf: &[u8]) -> IResult<&[u8], Self>
pub fn parse_pcisubvid(buf: &[u8]) -> IResult<&[u8], Self>
pub fn parse_pcisubdid(buf: &[u8]) -> IResult<&[u8], Self>
pub fn parse_vendor(buf: &[u8]) -> IResult<&[u8], Self>
pub fn parse(buf: &[u8]) -> IResult<&[u8], Self>
pub fn desc_type(&self) -> u16
pub fn write_buf(&self, buf: &mut [u8]) -> Option<usize>
Trait Implementations§
Source§impl Debug for Descriptor
impl Debug for Descriptor
Source§impl Display for Descriptor
impl Display for Descriptor
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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