pub enum SocketEvent {
Open {
socket: u32,
},
Message {
socket: u32,
text: String,
},
Closed {
socket: u32,
reason: String,
},
}Expand description
What happened to a socket.
Variants§
Implementations§
Source§impl SocketEvent
impl SocketEvent
Sourcepub fn from_event(event: &Event) -> Option<Self>
pub fn from_event(event: &Event) -> Option<Self>
The socket news an event carries, if it is some.
Trait Implementations§
Source§impl Clone for SocketEvent
impl Clone for SocketEvent
Source§impl Debug for SocketEvent
impl Debug for SocketEvent
impl Eq for SocketEvent
Source§impl PartialEq for SocketEvent
impl PartialEq for SocketEvent
impl StructuralPartialEq for SocketEvent
Auto Trait Implementations§
impl Freeze for SocketEvent
impl RefUnwindSafe for SocketEvent
impl Send for SocketEvent
impl Sync for SocketEvent
impl Unpin for SocketEvent
impl UnsafeUnpin for SocketEvent
impl UnwindSafe for SocketEvent
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