pub enum UdpServerEvent {
Message {
peer: SocketAddr,
message: MessageEvent,
},
SendFailed {
peer: SocketAddr,
failed: SendFailedEvent,
},
Idle,
}Expand description
High-level event produced by a UDP server.
Variants§
Message
A complete application message was received from a peer.
Fields
§
peer: SocketAddrPeer address that sent the message.
§
message: MessageEventReassembled MSRT message.
SendFailed
Reliable send failed for a peer.
Fields
§
peer: SocketAddrPeer address whose send failed.
§
failed: SendFailedEventSend failure details.
Idle
No action is currently pending.
Trait Implementations§
Source§impl Clone for UdpServerEvent
impl Clone for UdpServerEvent
Source§fn clone(&self) -> UdpServerEvent
fn clone(&self) -> UdpServerEvent
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 UdpServerEvent
Source§impl Debug for UdpServerEvent
impl Debug for UdpServerEvent
impl Eq for UdpServerEvent
Source§impl PartialEq for UdpServerEvent
impl PartialEq for UdpServerEvent
Source§fn eq(&self, other: &UdpServerEvent) -> bool
fn eq(&self, other: &UdpServerEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UdpServerEvent
Auto Trait Implementations§
impl Freeze for UdpServerEvent
impl RefUnwindSafe for UdpServerEvent
impl Send for UdpServerEvent
impl Sync for UdpServerEvent
impl Unpin for UdpServerEvent
impl UnsafeUnpin for UdpServerEvent
impl UnwindSafe for UdpServerEvent
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