pub enum UdpClientEvent {
Message(MessageEvent),
SendFailed(SendFailedEvent),
TransportUnavailable {
kind: ErrorKind,
},
Idle,
}Expand description
High-level event produced by a UDP client.
Variants§
Message(MessageEvent)
A complete application message was received.
SendFailed(SendFailedEvent)
Reliable send failed.
The connected UDP peer is currently unreachable.
This is a recoverable transport condition, such as a restarted server causing ICMP port-unreachable feedback on connected UDP sockets.
Idle
No action is currently pending.
Trait Implementations§
Source§impl Clone for UdpClientEvent
impl Clone for UdpClientEvent
Source§fn clone(&self) -> UdpClientEvent
fn clone(&self) -> UdpClientEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UdpClientEvent
Source§impl Debug for UdpClientEvent
impl Debug for UdpClientEvent
impl Eq for UdpClientEvent
Source§impl PartialEq for UdpClientEvent
impl PartialEq for UdpClientEvent
Source§fn eq(&self, other: &UdpClientEvent) -> bool
fn eq(&self, other: &UdpClientEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UdpClientEvent
Auto Trait Implementations§
impl Freeze for UdpClientEvent
impl RefUnwindSafe for UdpClientEvent
impl Send for UdpClientEvent
impl Sync for UdpClientEvent
impl Unpin for UdpClientEvent
impl UnsafeUnpin for UdpClientEvent
impl UnwindSafe for UdpClientEvent
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