pub enum EventNoRef {
Connect {
peer: PeerID,
data: u32,
},
Disconnect {
peer: PeerID,
data: u32,
},
Receive {
peer: PeerID,
channel_id: u8,
packet: Packet,
},
}Expand description
An ENet event, like Event, but without peer references.
Acquired with Event::no_ref.
Variants§
Connect
A new peer has connected.
Fields
Disconnect
A peer has disconnected.
Fields
Receive
A peer sent a packet to us.
Trait Implementations§
Source§impl Clone for EventNoRef
impl Clone for EventNoRef
Source§fn clone(&self) -> EventNoRef
fn clone(&self) -> EventNoRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventNoRef
impl RefUnwindSafe for EventNoRef
impl Send for EventNoRef
impl Sync for EventNoRef
impl Unpin for EventNoRef
impl UnwindSafe for EventNoRef
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