pub enum PppEvent {
Show 28 variants
NoError,
ParameterError,
OpenError,
DeviceError,
AllocError,
UserError,
DisconnectError,
AuthFailError,
ProtocolError,
PeerDeadError,
IdleTimeoutError,
MaxConnectTimeoutError,
LoopbackError,
PhaseDead,
PhaseMaster,
PhaseHoldoff,
PhaseInitialize,
PhaseSerialConnection,
PhaseDormant,
PhaseEstablish,
PhaseAuthenticate,
PhaseCallback,
PhaseNetwork,
PhaseRunning,
PhaseTerminate,
PhaseDisconnect,
PhaseFailed,
Other(i32),
}Expand description
Represents a PPP event on the system event loop
Variants§
NoError
No error
ParameterError
Invalid parameter
OpenError
Unable to open PPP session
DeviceError
Invalid I/O device for PPP
AllocError
Unable to allocate resources
UserError
User interrupt
DisconnectError
Connection lost
AuthFailError
Failed authentication challenge
ProtocolError
Failed to meet protocol
PeerDeadError
Connection timeout
IdleTimeoutError
Idle Timeout
MaxConnectTimeoutError
Max connect time reached
LoopbackError
Loopback detected
PhaseDead
PhaseMaster
PhaseHoldoff
PhaseInitialize
PhaseSerialConnection
PhaseDormant
PhaseEstablish
PhaseAuthenticate
PhaseCallback
PhaseNetwork
PhaseRunning
PhaseTerminate
PhaseDisconnect
PhaseFailed
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 PPP events.
Trait Implementations§
impl Copy for PppEvent
Source§impl EspEventDeserializer for PppEvent
impl EspEventDeserializer for PppEvent
Auto Trait Implementations§
impl Freeze for PppEvent
impl RefUnwindSafe for PppEvent
impl Send for PppEvent
impl Sync for PppEvent
impl Unpin for PppEvent
impl UnsafeUnpin for PppEvent
impl UnwindSafe for PppEvent
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)