Struct CdcNcmClass
pub struct CdcNcmClass<'d, D>where
D: Driver<'d>,{ /* private fields */ }
Expand description
CDC-NCM class
Implementations§
§impl<'d, D> CdcNcmClass<'d, D>where
D: Driver<'d>,
impl<'d, D> CdcNcmClass<'d, D>where
D: Driver<'d>,
pub fn into_embassy_net_device<const MTU: usize, const N_RX: usize, const N_TX: usize>(
self,
state: &'d mut State<MTU, N_RX, N_TX>,
ethernet_address: [u8; 6],
) -> (Runner<'d, D, MTU>, Device<'d, MTU>)
pub fn into_embassy_net_device<const MTU: usize, const N_RX: usize, const N_TX: usize>( self, state: &'d mut State<MTU, N_RX, N_TX>, ethernet_address: [u8; 6], ) -> (Runner<'d, D, MTU>, Device<'d, MTU>)
Obtain a driver for using the CDC-NCM class with embassy-net
.
§impl<'d, D> CdcNcmClass<'d, D>where
D: Driver<'d>,
impl<'d, D> CdcNcmClass<'d, D>where
D: Driver<'d>,
Auto Trait Implementations§
impl<'d, D> Freeze for CdcNcmClass<'d, D>
impl<'d, D> RefUnwindSafe for CdcNcmClass<'d, D>
impl<'d, D> Send for CdcNcmClass<'d, D>
impl<'d, D> Sync for CdcNcmClass<'d, D>
impl<'d, D> Unpin for CdcNcmClass<'d, D>
impl<'d, D> UnwindSafe for CdcNcmClass<'d, D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more