Skip to main content

PxeBaseCodeProtocol

Struct PxeBaseCodeProtocol 

Source
#[repr(C)]
pub struct PxeBaseCodeProtocol {
Show 14 fields pub revision: u64, pub start: unsafe extern "efiapi" fn(this: *mut Self, use_ipv6: Boolean) -> Status, pub stop: unsafe extern "efiapi" fn(this: *mut Self) -> Status, pub dhcp: unsafe extern "efiapi" fn(this: *mut Self, sort_offers: Boolean) -> Status, pub discover: unsafe extern "efiapi" fn(this: *mut Self, ty: PxeBaseCodeBootType, layer: *mut u16, use_bis: Boolean, info: *const PxeBaseCodeDiscoverInfo) -> Status, pub mtftp: unsafe extern "efiapi" fn(this: *mut Self, operation: PxeBaseCodeTftpOpcode, buffer: *mut c_void, overwrite: Boolean, buffer_size: *mut u64, block_size: *const usize, server_ip: *const IpAddress, filename: *const Char8, info: *const PxeBaseCodeMtftpInfo, dont_use_buffer: Boolean) -> Status, pub udp_write: unsafe extern "efiapi" fn(this: *mut Self, op_flags: PxeBaseCodeUdpOpFlags, dest_ip: *const IpAddress, dest_port: *const PxeBaseCodeUdpPort, gateway_ip: *const IpAddress, src_ip: *const IpAddress, src_port: *mut PxeBaseCodeUdpPort, header_size: *const usize, header_ptr: *const c_void, buffer_size: *const usize, buffer_ptr: *const c_void) -> Status, pub udp_read: unsafe extern "efiapi" fn(this: *mut Self, op_flags: PxeBaseCodeUdpOpFlags, dest_ip: *mut IpAddress, dest_port: *mut PxeBaseCodeUdpPort, src_ip: *mut IpAddress, src_port: *mut PxeBaseCodeUdpPort, header_size: *const usize, header_ptr: *mut c_void, buffer_size: *mut usize, buffer_ptr: *mut c_void) -> Status, pub set_ip_filter: unsafe extern "efiapi" fn(this: *mut Self, new_filter: *const PxeBaseCodeIpFilter) -> Status, pub arp: unsafe extern "efiapi" fn(this: *mut Self, ip_addr: *const IpAddress, mac_addr: *mut MacAddress) -> Status, pub set_parameters: unsafe extern "efiapi" fn(this: *mut Self, new_auto_arp: *const Boolean, new_send_guid: *const Boolean, new_ttl: *const u8, new_tos: *const u8, new_make_callback: *const Boolean) -> Status, pub set_station_ip: unsafe extern "efiapi" fn(this: *mut Self, new_station_ip: *const IpAddress, new_subnet_mask: *const IpAddress) -> Status, pub set_packets: unsafe extern "efiapi" fn(this: *mut Self, new_dhcp_discover_valid: *const Boolean, new_dhcp_ack_received: *const Boolean, new_proxy_offer_received: *const Boolean, new_pxe_discover_valid: *const Boolean, new_pxe_reply_received: *const Boolean, new_pxe_bis_reply_received: *const Boolean, new_dhcp_discover: *const PxeBaseCodePacket, new_dhcp_ack: *const PxeBaseCodePacket, new_proxy_offer: *const PxeBaseCodePacket, new_pxe_discover: *const PxeBaseCodePacket, new_pxe_reply: *const PxeBaseCodePacket, new_pxe_bis_reply: *const PxeBaseCodePacket) -> Status, pub mode: *const PxeBaseCodeMode,
}

Fields§

§revision: u64§start: unsafe extern "efiapi" fn(this: *mut Self, use_ipv6: Boolean) -> Status§stop: unsafe extern "efiapi" fn(this: *mut Self) -> Status§dhcp: unsafe extern "efiapi" fn(this: *mut Self, sort_offers: Boolean) -> Status§discover: unsafe extern "efiapi" fn(this: *mut Self, ty: PxeBaseCodeBootType, layer: *mut u16, use_bis: Boolean, info: *const PxeBaseCodeDiscoverInfo) -> Status§mtftp: unsafe extern "efiapi" fn(this: *mut Self, operation: PxeBaseCodeTftpOpcode, buffer: *mut c_void, overwrite: Boolean, buffer_size: *mut u64, block_size: *const usize, server_ip: *const IpAddress, filename: *const Char8, info: *const PxeBaseCodeMtftpInfo, dont_use_buffer: Boolean) -> Status§udp_write: unsafe extern "efiapi" fn(this: *mut Self, op_flags: PxeBaseCodeUdpOpFlags, dest_ip: *const IpAddress, dest_port: *const PxeBaseCodeUdpPort, gateway_ip: *const IpAddress, src_ip: *const IpAddress, src_port: *mut PxeBaseCodeUdpPort, header_size: *const usize, header_ptr: *const c_void, buffer_size: *const usize, buffer_ptr: *const c_void) -> Status§udp_read: unsafe extern "efiapi" fn(this: *mut Self, op_flags: PxeBaseCodeUdpOpFlags, dest_ip: *mut IpAddress, dest_port: *mut PxeBaseCodeUdpPort, src_ip: *mut IpAddress, src_port: *mut PxeBaseCodeUdpPort, header_size: *const usize, header_ptr: *mut c_void, buffer_size: *mut usize, buffer_ptr: *mut c_void) -> Status§set_ip_filter: unsafe extern "efiapi" fn(this: *mut Self, new_filter: *const PxeBaseCodeIpFilter) -> Status§arp: unsafe extern "efiapi" fn(this: *mut Self, ip_addr: *const IpAddress, mac_addr: *mut MacAddress) -> Status§set_parameters: unsafe extern "efiapi" fn(this: *mut Self, new_auto_arp: *const Boolean, new_send_guid: *const Boolean, new_ttl: *const u8, new_tos: *const u8, new_make_callback: *const Boolean) -> Status§set_station_ip: unsafe extern "efiapi" fn(this: *mut Self, new_station_ip: *const IpAddress, new_subnet_mask: *const IpAddress) -> Status§set_packets: unsafe extern "efiapi" fn(this: *mut Self, new_dhcp_discover_valid: *const Boolean, new_dhcp_ack_received: *const Boolean, new_proxy_offer_received: *const Boolean, new_pxe_discover_valid: *const Boolean, new_pxe_reply_received: *const Boolean, new_pxe_bis_reply_received: *const Boolean, new_dhcp_discover: *const PxeBaseCodePacket, new_dhcp_ack: *const PxeBaseCodePacket, new_proxy_offer: *const PxeBaseCodePacket, new_pxe_discover: *const PxeBaseCodePacket, new_pxe_reply: *const PxeBaseCodePacket, new_pxe_bis_reply: *const PxeBaseCodePacket) -> Status§mode: *const PxeBaseCodeMode

Implementations§

Trait Implementations§

Source§

impl Debug for PxeBaseCodeProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Send for PxeBaseCodeProtocol

§

impl !Sync for PxeBaseCodeProtocol

§

impl Freeze for PxeBaseCodeProtocol

§

impl RefUnwindSafe for PxeBaseCodeProtocol

§

impl Unpin for PxeBaseCodeProtocol

§

impl UnsafeUnpin for PxeBaseCodeProtocol

§

impl UnwindSafe for PxeBaseCodeProtocol

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.