Skip to main content

SimpleNetworkProtocol

Struct SimpleNetworkProtocol 

Source
#[repr(C)]
pub struct SimpleNetworkProtocol {
Show 16 fields pub revision: u64, pub start: unsafe extern "efiapi" fn(this: *const Self) -> Status, pub stop: unsafe extern "efiapi" fn(this: *const Self) -> Status, pub initialize: unsafe extern "efiapi" fn(this: *const Self, extra_receive_buffer_size: usize, extra_transmit_buffer_size: usize) -> Status, pub reset: unsafe extern "efiapi" fn(this: *const Self, extended_verification: Boolean) -> Status, pub shutdown: unsafe extern "efiapi" fn(this: *const Self) -> Status, pub receive_filters: unsafe extern "efiapi" fn(this: *const Self, enable: ReceiveFlags, disable: ReceiveFlags, reset_multicast_filter: Boolean, multicast_filter_count: usize, multicast_filter: *const MacAddress) -> Status, pub station_address: unsafe extern "efiapi" fn(this: *const Self, reset: Boolean, new: *const MacAddress) -> Status, pub statistics: unsafe extern "efiapi" fn(this: *const Self, reset: Boolean, statistics_size: *mut usize, statistics_table: *mut NetworkStatistics) -> Status, pub multicast_ip_to_mac: unsafe extern "efiapi" fn(this: *const Self, ipv6: Boolean, ip: *const IpAddress, mac: *mut MacAddress) -> Status, pub non_volatile_data: unsafe extern "efiapi" fn(this: *const Self, read: Boolean, offset: usize, buffer_size: usize, buffer: *mut c_void) -> Status, pub get_status: unsafe extern "efiapi" fn(this: *const Self, interrupt_status: *mut InterruptStatus, transmit_buffer: *mut *mut c_void) -> Status, pub transmit: unsafe extern "efiapi" fn(this: *const Self, header_size: usize, buffer_size: usize, buffer: *const c_void, source_address: *const MacAddress, dest_address: *const MacAddress, protocol: *const u16) -> Status, pub receive: unsafe extern "efiapi" fn(this: *const Self, header_size: *mut usize, buffer_size: *mut usize, buffer: *mut c_void, source_address: *mut MacAddress, dest_address: *mut MacAddress, protocol: *mut u16) -> Status, pub wait_for_packet: Event, pub mode: *mut NetworkMode,
}

Fields§

§revision: u64§start: unsafe extern "efiapi" fn(this: *const Self) -> Status§stop: unsafe extern "efiapi" fn(this: *const Self) -> Status§initialize: unsafe extern "efiapi" fn(this: *const Self, extra_receive_buffer_size: usize, extra_transmit_buffer_size: usize) -> Status§reset: unsafe extern "efiapi" fn(this: *const Self, extended_verification: Boolean) -> Status§shutdown: unsafe extern "efiapi" fn(this: *const Self) -> Status§receive_filters: unsafe extern "efiapi" fn(this: *const Self, enable: ReceiveFlags, disable: ReceiveFlags, reset_multicast_filter: Boolean, multicast_filter_count: usize, multicast_filter: *const MacAddress) -> Status§station_address: unsafe extern "efiapi" fn(this: *const Self, reset: Boolean, new: *const MacAddress) -> Status§statistics: unsafe extern "efiapi" fn(this: *const Self, reset: Boolean, statistics_size: *mut usize, statistics_table: *mut NetworkStatistics) -> Status§multicast_ip_to_mac: unsafe extern "efiapi" fn(this: *const Self, ipv6: Boolean, ip: *const IpAddress, mac: *mut MacAddress) -> Status§non_volatile_data: unsafe extern "efiapi" fn(this: *const Self, read: Boolean, offset: usize, buffer_size: usize, buffer: *mut c_void) -> Status§get_status: unsafe extern "efiapi" fn(this: *const Self, interrupt_status: *mut InterruptStatus, transmit_buffer: *mut *mut c_void) -> Status§transmit: unsafe extern "efiapi" fn(this: *const Self, header_size: usize, buffer_size: usize, buffer: *const c_void, source_address: *const MacAddress, dest_address: *const MacAddress, protocol: *const u16) -> Status§receive: unsafe extern "efiapi" fn(this: *const Self, header_size: *mut usize, buffer_size: *mut usize, buffer: *mut c_void, source_address: *mut MacAddress, dest_address: *mut MacAddress, protocol: *mut u16) -> Status§wait_for_packet: Event§mode: *mut NetworkMode

Implementations§

Trait Implementations§

Source§

impl Debug for SimpleNetworkProtocol

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Send for SimpleNetworkProtocol

§

impl !Sync for SimpleNetworkProtocol

§

impl Freeze for SimpleNetworkProtocol

§

impl RefUnwindSafe for SimpleNetworkProtocol

§

impl Unpin for SimpleNetworkProtocol

§

impl UnsafeUnpin for SimpleNetworkProtocol

§

impl UnwindSafe for SimpleNetworkProtocol

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.