pub enum EthEvent {
Started(esp_eth_handle_t),
Stopped(esp_eth_handle_t),
Connected(esp_eth_handle_t),
Disconnected(esp_eth_handle_t),
Other(i32),
}Variants§
Started(esp_eth_handle_t)
Stopped(esp_eth_handle_t)
Connected(esp_eth_handle_t)
Disconnected(esp_eth_handle_t)
Other(i32)
An event ID not recognised by this version of the library was received.
This variant is produced instead of panicking when an unknown event ID arrives, allowing applications to remain forward-compatible with ESP-IDF versions that introduce new Ethernet events.
Implementations§
Source§impl EthEvent
impl EthEvent
pub fn is_for( &self, raw_handle: impl RawHandle<Handle = esp_eth_handle_t>, ) -> bool
pub fn is_for_handle(&self, handle: esp_eth_handle_t) -> bool
pub fn handle(&self) -> esp_eth_handle_t
Trait Implementations§
impl Copy for EthEvent
impl Eq for EthEvent
Source§impl EspEventDeserializer for EthEvent
impl EspEventDeserializer for EthEvent
Source§impl EspEventSource for EthEvent
impl EspEventSource for EthEvent
impl Send for EthEvent
impl StructuralPartialEq for EthEvent
Auto Trait Implementations§
impl !Sync for EthEvent
impl Freeze for EthEvent
impl RefUnwindSafe for EthEvent
impl Unpin for EthEvent
impl UnsafeUnpin for EthEvent
impl UnwindSafe for EthEvent
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)