@@ -678,118 +678,118 @@ pub struct DeviceSubType(pub u8);
678
678
679
679
impl DeviceSubType {
680
680
/// PCI Device Path.
681
- pub const HARDWARE_PCI : DeviceSubType = DeviceSubType ( 1 ) ;
681
+ pub const HARDWARE_PCI : Self = Self ( 1 ) ;
682
682
/// PCCARD Device Path.
683
- pub const HARDWARE_PCCARD : DeviceSubType = DeviceSubType ( 2 ) ;
683
+ pub const HARDWARE_PCCARD : Self = Self ( 2 ) ;
684
684
/// Memory-mapped Device Path.
685
- pub const HARDWARE_MEMORY_MAPPED : DeviceSubType = DeviceSubType ( 3 ) ;
685
+ pub const HARDWARE_MEMORY_MAPPED : Self = Self ( 3 ) ;
686
686
/// Vendor-Defined Device Path.
687
- pub const HARDWARE_VENDOR : DeviceSubType = DeviceSubType ( 4 ) ;
687
+ pub const HARDWARE_VENDOR : Self = Self ( 4 ) ;
688
688
/// Controller Device Path.
689
- pub const HARDWARE_CONTROLLER : DeviceSubType = DeviceSubType ( 5 ) ;
689
+ pub const HARDWARE_CONTROLLER : Self = Self ( 5 ) ;
690
690
/// BMC Device Path.
691
- pub const HARDWARE_BMC : DeviceSubType = DeviceSubType ( 6 ) ;
691
+ pub const HARDWARE_BMC : Self = Self ( 6 ) ;
692
692
693
693
/// ACPI Device Path.
694
- pub const ACPI : DeviceSubType = DeviceSubType ( 1 ) ;
694
+ pub const ACPI : Self = Self ( 1 ) ;
695
695
/// Expanded ACPI Device Path.
696
- pub const ACPI_EXPANDED : DeviceSubType = DeviceSubType ( 2 ) ;
696
+ pub const ACPI_EXPANDED : Self = Self ( 2 ) ;
697
697
/// ACPI _ADR Device Path.
698
- pub const ACPI_ADR : DeviceSubType = DeviceSubType ( 3 ) ;
698
+ pub const ACPI_ADR : Self = Self ( 3 ) ;
699
699
/// NVDIMM Device Path.
700
- pub const ACPI_NVDIMM : DeviceSubType = DeviceSubType ( 4 ) ;
700
+ pub const ACPI_NVDIMM : Self = Self ( 4 ) ;
701
701
702
702
/// ATAPI Device Path.
703
- pub const MESSAGING_ATAPI : DeviceSubType = DeviceSubType ( 1 ) ;
703
+ pub const MESSAGING_ATAPI : Self = Self ( 1 ) ;
704
704
/// SCSI Device Path.
705
- pub const MESSAGING_SCSI : DeviceSubType = DeviceSubType ( 2 ) ;
705
+ pub const MESSAGING_SCSI : Self = Self ( 2 ) ;
706
706
/// Fibre Channel Device Path.
707
- pub const MESSAGING_FIBRE_CHANNEL : DeviceSubType = DeviceSubType ( 3 ) ;
707
+ pub const MESSAGING_FIBRE_CHANNEL : Self = Self ( 3 ) ;
708
708
/// 1394 Device Path.
709
- pub const MESSAGING_1394 : DeviceSubType = DeviceSubType ( 4 ) ;
709
+ pub const MESSAGING_1394 : Self = Self ( 4 ) ;
710
710
/// USB Device Path.
711
- pub const MESSAGING_USB : DeviceSubType = DeviceSubType ( 5 ) ;
711
+ pub const MESSAGING_USB : Self = Self ( 5 ) ;
712
712
/// I2O Device Path.
713
- pub const MESSAGING_I2O : DeviceSubType = DeviceSubType ( 6 ) ;
713
+ pub const MESSAGING_I2O : Self = Self ( 6 ) ;
714
714
/// Infiniband Device Path.
715
- pub const MESSAGING_INFINIBAND : DeviceSubType = DeviceSubType ( 9 ) ;
715
+ pub const MESSAGING_INFINIBAND : Self = Self ( 9 ) ;
716
716
/// Vendor-Defined Device Path.
717
- pub const MESSAGING_VENDOR : DeviceSubType = DeviceSubType ( 10 ) ;
717
+ pub const MESSAGING_VENDOR : Self = Self ( 10 ) ;
718
718
/// MAC Address Device Path.
719
- pub const MESSAGING_MAC_ADDRESS : DeviceSubType = DeviceSubType ( 11 ) ;
719
+ pub const MESSAGING_MAC_ADDRESS : Self = Self ( 11 ) ;
720
720
/// IPV4 Device Path.
721
- pub const MESSAGING_IPV4 : DeviceSubType = DeviceSubType ( 12 ) ;
721
+ pub const MESSAGING_IPV4 : Self = Self ( 12 ) ;
722
722
/// IPV6 Device Path.
723
- pub const MESSAGING_IPV6 : DeviceSubType = DeviceSubType ( 13 ) ;
723
+ pub const MESSAGING_IPV6 : Self = Self ( 13 ) ;
724
724
/// UART Device Path.
725
- pub const MESSAGING_UART : DeviceSubType = DeviceSubType ( 14 ) ;
725
+ pub const MESSAGING_UART : Self = Self ( 14 ) ;
726
726
/// USB Class Device Path.
727
- pub const MESSAGING_USB_CLASS : DeviceSubType = DeviceSubType ( 15 ) ;
727
+ pub const MESSAGING_USB_CLASS : Self = Self ( 15 ) ;
728
728
/// USB WWID Device Path.
729
- pub const MESSAGING_USB_WWID : DeviceSubType = DeviceSubType ( 16 ) ;
729
+ pub const MESSAGING_USB_WWID : Self = Self ( 16 ) ;
730
730
/// Device Logical Unit.
731
- pub const MESSAGING_DEVICE_LOGICAL_UNIT : DeviceSubType = DeviceSubType ( 17 ) ;
731
+ pub const MESSAGING_DEVICE_LOGICAL_UNIT : Self = Self ( 17 ) ;
732
732
/// SATA Device Path.
733
- pub const MESSAGING_SATA : DeviceSubType = DeviceSubType ( 18 ) ;
733
+ pub const MESSAGING_SATA : Self = Self ( 18 ) ;
734
734
/// iSCSI Device Path node (base information).
735
- pub const MESSAGING_ISCSI : DeviceSubType = DeviceSubType ( 19 ) ;
735
+ pub const MESSAGING_ISCSI : Self = Self ( 19 ) ;
736
736
/// VLAN Device Path node.
737
- pub const MESSAGING_VLAN : DeviceSubType = DeviceSubType ( 20 ) ;
737
+ pub const MESSAGING_VLAN : Self = Self ( 20 ) ;
738
738
/// Fibre Channel Ex Device Path.
739
- pub const MESSAGING_FIBRE_CHANNEL_EX : DeviceSubType = DeviceSubType ( 21 ) ;
739
+ pub const MESSAGING_FIBRE_CHANNEL_EX : Self = Self ( 21 ) ;
740
740
/// Serial Attached SCSI (SAS) Ex Device Path.
741
- pub const MESSAGING_SCSI_SAS_EX : DeviceSubType = DeviceSubType ( 22 ) ;
741
+ pub const MESSAGING_SCSI_SAS_EX : Self = Self ( 22 ) ;
742
742
/// NVM Express Namespace Device Path.
743
- pub const MESSAGING_NVME_NAMESPACE : DeviceSubType = DeviceSubType ( 23 ) ;
743
+ pub const MESSAGING_NVME_NAMESPACE : Self = Self ( 23 ) ;
744
744
/// Uniform Resource Identifiers (URI) Device Path.
745
- pub const MESSAGING_URI : DeviceSubType = DeviceSubType ( 24 ) ;
745
+ pub const MESSAGING_URI : Self = Self ( 24 ) ;
746
746
/// UFS Device Path.
747
- pub const MESSAGING_UFS : DeviceSubType = DeviceSubType ( 25 ) ;
747
+ pub const MESSAGING_UFS : Self = Self ( 25 ) ;
748
748
/// SD (Secure Digital) Device Path.
749
- pub const MESSAGING_SD : DeviceSubType = DeviceSubType ( 26 ) ;
749
+ pub const MESSAGING_SD : Self = Self ( 26 ) ;
750
750
/// Bluetooth Device Path.
751
- pub const MESSAGING_BLUETOOTH : DeviceSubType = DeviceSubType ( 27 ) ;
751
+ pub const MESSAGING_BLUETOOTH : Self = Self ( 27 ) ;
752
752
/// Wi-Fi Device Path.
753
- pub const MESSAGING_WIFI : DeviceSubType = DeviceSubType ( 28 ) ;
753
+ pub const MESSAGING_WIFI : Self = Self ( 28 ) ;
754
754
/// eMMC (Embedded Multi-Media Card) Device Path.
755
- pub const MESSAGING_EMMC : DeviceSubType = DeviceSubType ( 29 ) ;
755
+ pub const MESSAGING_EMMC : Self = Self ( 29 ) ;
756
756
/// BluetoothLE Device Path.
757
- pub const MESSAGING_BLUETOOTH_LE : DeviceSubType = DeviceSubType ( 30 ) ;
757
+ pub const MESSAGING_BLUETOOTH_LE : Self = Self ( 30 ) ;
758
758
/// DNS Device Path.
759
- pub const MESSAGING_DNS : DeviceSubType = DeviceSubType ( 31 ) ;
759
+ pub const MESSAGING_DNS : Self = Self ( 31 ) ;
760
760
/// NVDIMM Namespace Device Path.
761
- pub const MESSAGING_NVDIMM_NAMESPACE : DeviceSubType = DeviceSubType ( 32 ) ;
761
+ pub const MESSAGING_NVDIMM_NAMESPACE : Self = Self ( 32 ) ;
762
762
/// REST Service Device Path.
763
- pub const MESSAGING_REST_SERVICE : DeviceSubType = DeviceSubType ( 33 ) ;
763
+ pub const MESSAGING_REST_SERVICE : Self = Self ( 33 ) ;
764
764
/// NVME over Fabric (NVMe-oF) Namespace Device Path.
765
- pub const MESSAGING_NVME_OF_NAMESPACE : DeviceSubType = DeviceSubType ( 34 ) ;
765
+ pub const MESSAGING_NVME_OF_NAMESPACE : Self = Self ( 34 ) ;
766
766
767
767
/// Hard Drive Media Device Path.
768
- pub const MEDIA_HARD_DRIVE : DeviceSubType = DeviceSubType ( 1 ) ;
768
+ pub const MEDIA_HARD_DRIVE : Self = Self ( 1 ) ;
769
769
/// CD-ROM Media Device Path.
770
- pub const MEDIA_CD_ROM : DeviceSubType = DeviceSubType ( 2 ) ;
770
+ pub const MEDIA_CD_ROM : Self = Self ( 2 ) ;
771
771
/// Vendor-Defined Media Device Path.
772
- pub const MEDIA_VENDOR : DeviceSubType = DeviceSubType ( 3 ) ;
772
+ pub const MEDIA_VENDOR : Self = Self ( 3 ) ;
773
773
/// File Path Media Device Path.
774
- pub const MEDIA_FILE_PATH : DeviceSubType = DeviceSubType ( 4 ) ;
774
+ pub const MEDIA_FILE_PATH : Self = Self ( 4 ) ;
775
775
/// Media Protocol Device Path.
776
- pub const MEDIA_PROTOCOL : DeviceSubType = DeviceSubType ( 5 ) ;
776
+ pub const MEDIA_PROTOCOL : Self = Self ( 5 ) ;
777
777
/// PIWG Firmware File.
778
- pub const MEDIA_PIWG_FIRMWARE_FILE : DeviceSubType = DeviceSubType ( 6 ) ;
778
+ pub const MEDIA_PIWG_FIRMWARE_FILE : Self = Self ( 6 ) ;
779
779
/// PIWG Firmware Volume.
780
- pub const MEDIA_PIWG_FIRMWARE_VOLUME : DeviceSubType = DeviceSubType ( 7 ) ;
780
+ pub const MEDIA_PIWG_FIRMWARE_VOLUME : Self = Self ( 7 ) ;
781
781
/// Relative Offset Range.
782
- pub const MEDIA_RELATIVE_OFFSET_RANGE : DeviceSubType = DeviceSubType ( 8 ) ;
782
+ pub const MEDIA_RELATIVE_OFFSET_RANGE : Self = Self ( 8 ) ;
783
783
/// RAM Disk Device Path.
784
- pub const MEDIA_RAM_DISK : DeviceSubType = DeviceSubType ( 9 ) ;
784
+ pub const MEDIA_RAM_DISK : Self = Self ( 9 ) ;
785
785
786
786
/// BIOS Boot Specification Device Path.
787
- pub const BIOS_BOOT_SPECIFICATION : DeviceSubType = DeviceSubType ( 1 ) ;
787
+ pub const BIOS_BOOT_SPECIFICATION : Self = Self ( 1 ) ;
788
788
789
789
/// End this instance of a Device Path and start a new one.
790
- pub const END_INSTANCE : DeviceSubType = DeviceSubType ( 0x01 ) ;
790
+ pub const END_INSTANCE : Self = Self ( 0x01 ) ;
791
791
/// End entire Device Path.
792
- pub const END_ENTIRE : DeviceSubType = DeviceSubType ( 0xff ) ;
792
+ pub const END_ENTIRE : Self = Self ( 0xff ) ;
793
793
}
794
794
795
795
/// Error returned when attempting to convert from a `&[u8]` to a
0 commit comments