pub enum PollIngressSingleResult {
None,
PacketProcessed,
SocketStateChanged,
}Expand description
Result returned by Interface::poll_ingress_single.
This contains information on whether a packet was processed or not, and whether it might’ve affected socket states.
Variants§
None
No packet was processed. You don’t need to call Interface::poll_ingress_single
again, until more packets arrive.
Socket state is guaranteed to not have changed.
PacketProcessed
A packet was processed.
There may be more packets in the device’s RX queue, so you should call Interface::poll_ingress_single again.
Socket state is guaranteed to not have changed.
SocketStateChanged
A packet was processed, which might have caused socket state to change.
There may be more packets in the device’s RX queue, so you should call Interface::poll_ingress_single again.
You should check the state of sockets again for received data or completion of operations.
Trait Implementations§
Source§impl Clone for PollIngressSingleResult
impl Clone for PollIngressSingleResult
Source§fn clone(&self) -> PollIngressSingleResult
fn clone(&self) -> PollIngressSingleResult
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PollIngressSingleResult
impl Debug for PollIngressSingleResult
Source§impl PartialEq for PollIngressSingleResult
impl PartialEq for PollIngressSingleResult
impl Copy for PollIngressSingleResult
impl Eq for PollIngressSingleResult
impl StructuralPartialEq for PollIngressSingleResult
Auto Trait Implementations§
impl Freeze for PollIngressSingleResult
impl RefUnwindSafe for PollIngressSingleResult
impl Send for PollIngressSingleResult
impl Sync for PollIngressSingleResult
impl Unpin for PollIngressSingleResult
impl UnwindSafe for PollIngressSingleResult
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
§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)
clone_to_uninit)