Struct esp_idf_sys::esp_netif_driver_ifconfig
source · [−]#[repr(C)]pub struct esp_netif_driver_ifconfig {
pub handle: esp_netif_iodriver_handle,
pub transmit: Option<unsafe extern "C" fn(h: *mut c_void, buffer: *mut c_void, len: usize) -> esp_err_t>,
pub transmit_wrap: Option<unsafe extern "C" fn(h: *mut c_void, buffer: *mut c_void, len: usize, netstack_buffer: *mut c_void) -> esp_err_t>,
pub driver_free_rx_buffer: Option<unsafe extern "C" fn(h: *mut c_void, buffer: *mut c_void)>,
}
Expand description
@brief Specific IO driver configuration
Fields
handle: esp_netif_iodriver_handle
< io-driver handle
transmit: Option<unsafe extern "C" fn(h: *mut c_void, buffer: *mut c_void, len: usize) -> esp_err_t>
< transmit function pointer
transmit_wrap: Option<unsafe extern "C" fn(h: *mut c_void, buffer: *mut c_void, len: usize, netstack_buffer: *mut c_void) -> esp_err_t>
< transmit wrap function pointer
driver_free_rx_buffer: Option<unsafe extern "C" fn(h: *mut c_void, buffer: *mut c_void)>
< free rx buffer function pointer
Trait Implementations
sourceimpl Clone for esp_netif_driver_ifconfig
impl Clone for esp_netif_driver_ifconfig
sourcefn clone(&self) -> esp_netif_driver_ifconfig
fn clone(&self) -> esp_netif_driver_ifconfig
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for esp_netif_driver_ifconfig
impl Debug for esp_netif_driver_ifconfig
sourceimpl Default for esp_netif_driver_ifconfig
impl Default for esp_netif_driver_ifconfig
impl Copy for esp_netif_driver_ifconfig
Auto Trait Implementations
impl RefUnwindSafe for esp_netif_driver_ifconfig
impl !Send for esp_netif_driver_ifconfig
impl !Sync for esp_netif_driver_ifconfig
impl Unpin for esp_netif_driver_ifconfig
impl UnwindSafe for esp_netif_driver_ifconfig
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more