@@ -617,7 +617,8 @@ impl BaseCode {
617
617
}
618
618
619
619
/// A type of bootstrap to perform in [`BaseCode::discover`].
620
- // EFI_PXE_BASE_CODE_BOOT_*
620
+ ///
621
+ /// Corresponds to the `EFI_PXE_BASE_CODE_BOOT_` constants in the C API.
621
622
#[ derive( Clone , Copy , PartialEq , Eq , Hash ) ]
622
623
#[ repr( u16 ) ]
623
624
#[ allow( missing_docs) ]
@@ -648,7 +649,8 @@ pub enum BootstrapType {
648
649
}
649
650
650
651
/// This struct contains optional parameters for [`BaseCode::discover`].
651
- // EFI_PXE_BASE_CODE_DISCOVER_INFO
652
+ ///
653
+ /// Corresponds to the `EFI_PXE_BASE_CODE_DISCOVER_INFO` type in the C API.
652
654
#[ repr( C ) ]
653
655
pub struct DiscoverInfo < T : ?Sized > {
654
656
use_m_cast : bool ,
@@ -724,7 +726,8 @@ impl<T> DiscoverInfo<T> {
724
726
}
725
727
726
728
/// An entry in the Boot Server list
727
- // EFI_PXE_BASE_CODE_SRVLIST
729
+ ///
730
+ /// Corresponds to the `EFI_PXE_BASE_CODE_SRVLIST` type in the C API.
728
731
#[ repr( C ) ]
729
732
pub struct Server {
730
733
/// The type of Boot Server reply
@@ -759,7 +762,7 @@ impl Server {
759
762
}
760
763
}
761
764
762
- // EFI_PXE_BASE_CODE_TFTP_OPCODE
765
+ /// Corresponds to the ` EFI_PXE_BASE_CODE_TFTP_OPCODE` type in the C API.
763
766
#[ repr( C ) ]
764
767
enum TftpOpcode {
765
768
TftpGetFileSize = 1 ,
@@ -772,7 +775,8 @@ enum TftpOpcode {
772
775
}
773
776
774
777
/// MTFTP connection parameters
775
- // EFI_PXE_BASE_CODE_MTFTP_INFO
778
+ ///
779
+ /// Corresponds to the `EFI_PXE_BASE_CODE_MTFTP_INFO` type in the C API.
776
780
#[ derive( Clone , Copy ) ]
777
781
#[ repr( C ) ]
778
782
pub struct MtftpInfo {
@@ -816,7 +820,8 @@ bitflags! {
816
820
}
817
821
818
822
/// IP receive filter settings
819
- // EFI_PXE_BASE_CODE_IP_FILTER
823
+ ///
824
+ /// Corresponds to the `EFI_PXE_BASE_CODE_IP_FILTER` type in the C API.
820
825
#[ repr( C ) ]
821
826
pub struct IpFilter {
822
827
/// A set of filters.
@@ -870,7 +875,8 @@ bitflags! {
870
875
}
871
876
872
877
/// A network packet.
873
- // EFI_PXE_BASE_CODE_PACKET
878
+ ///
879
+ /// Corresponds to the `EFI_PXE_BASE_CODE_PACKET` type in the C API.
874
880
#[ repr( C ) ]
875
881
pub union Packet {
876
882
raw : [ u8 ; 1472 ] ,
@@ -897,7 +903,8 @@ impl AsRef<DhcpV6Packet> for Packet {
897
903
}
898
904
899
905
/// A Dhcpv4 Packet.
900
- // EFI_PXE_BASE_CODE_DHCPV4_PACKET
906
+ ///
907
+ /// Corresponds to the `EFI_PXE_BASE_CODE_DHCPV4_PACKET` type in the C API.
901
908
#[ repr( C ) ]
902
909
#[ derive( Clone , Copy ) ]
903
910
pub struct DhcpV4Packet {
@@ -967,7 +974,8 @@ bitflags! {
967
974
}
968
975
969
976
/// A Dhcpv6 Packet.
970
- // EFI_PXE_BASE_CODE_DHCPV6_PACKET
977
+ ///
978
+ /// Corresponds to the `EFI_PXE_BASE_CODE_DHCPV6_PACKET` type in the C API.
971
979
#[ repr( C ) ]
972
980
#[ derive( Clone , Copy ) ]
973
981
pub struct DhcpV6Packet {
@@ -989,7 +997,8 @@ impl DhcpV6Packet {
989
997
990
998
/// The data values in this structure are read-only and are updated by the
991
999
/// [`BaseCode`].
992
- // EFI_PXE_BASE_CODE_MODE
1000
+ ///
1001
+ /// Corresponds to the `EFI_PXE_BASE_CODE_MODE` type in the C API.
993
1002
#[ repr( C ) ]
994
1003
pub struct Mode {
995
1004
/// `true` if this device has been started by calling [`BaseCode::start`].
@@ -1146,7 +1155,8 @@ pub struct Mode {
1146
1155
}
1147
1156
1148
1157
/// An entry for the ARP cache found in [`Mode::arp_cache`]
1149
- // EFI_PXE_BASE_CODE_ARP_ENTRY
1158
+ ///
1159
+ /// Corresponds to the `EFI_PXE_BASE_CODE_ARP_ENTRY` type in the C API.
1150
1160
#[ repr( C ) ]
1151
1161
pub struct ArpEntry {
1152
1162
/// The IP address.
@@ -1156,7 +1166,8 @@ pub struct ArpEntry {
1156
1166
}
1157
1167
1158
1168
/// An entry for the route table found in [`Mode::route_table`]
1159
- // EFI_PXE_BASE_CODE_ROUTE_ENTRY
1169
+ ///
1170
+ /// Corresponds to the `EFI_PXE_BASE_CODE_ROUTE_ENTRY` type in the C API.
1160
1171
#[ repr( C ) ]
1161
1172
#[ allow( missing_docs) ]
1162
1173
pub struct RouteEntry {
@@ -1165,7 +1176,9 @@ pub struct RouteEntry {
1165
1176
pub gw_addr : IpAddress ,
1166
1177
}
1167
1178
1168
- // EFI_PXE_BASE_CODE_ICMP_ERROR
1179
+ /// An ICMP error packet.
1180
+ ///
1181
+ /// Corresponds to the `EFI_PXE_BASE_CODE_ICMP_ERROR` type in the C API.
1169
1182
#[ repr( C ) ]
1170
1183
#[ allow( missing_docs) ]
1171
1184
pub struct IcmpError {
@@ -1176,8 +1189,8 @@ pub struct IcmpError {
1176
1189
pub data : [ u8 ; 494 ] ,
1177
1190
}
1178
1191
1179
- // This type represents the anonymous union inside
1180
- // EFI_PXE_BASE_CODE_ICMP_ERROR.
1192
+ /// Corresponds to the anonymous union inside
1193
+ /// ` EFI_PXE_BASE_CODE_ICMP_ERROR` in the C API .
1181
1194
#[ repr( C ) ]
1182
1195
#[ allow( missing_docs) ]
1183
1196
pub union IcmpErrorUnion {
@@ -1187,8 +1200,8 @@ pub union IcmpErrorUnion {
1187
1200
pub echo : IcmpErrorEcho ,
1188
1201
}
1189
1202
1190
- // This type represents on of the fields in the anonymous union inside
1191
- // EFI_PXE_BASE_CODE_ICMP_ERROR.
1203
+ /// Corresponds to the `Echo` field in the anonymous union inside
1204
+ /// ` EFI_PXE_BASE_CODE_ICMP_ERROR` in the C API .
1192
1205
#[ repr( C ) ]
1193
1206
#[ derive( Clone , Copy ) ]
1194
1207
#[ allow( missing_docs) ]
@@ -1197,7 +1210,9 @@ pub struct IcmpErrorEcho {
1197
1210
pub sequence : u16 ,
1198
1211
}
1199
1212
1200
- // EFI_PXE_BASE_CODE_TFTP_ERROR
1213
+ /// A TFTP error packet.
1214
+ ///
1215
+ /// Corresponds to the `EFI_PXE_BASE_CODE_TFTP_ERROR` type in the C API.
1201
1216
#[ repr( C ) ]
1202
1217
#[ allow( missing_docs) ]
1203
1218
pub struct TftpError {
0 commit comments