[−][src]Enum laminar::SocketEvent
Events that can occur in laminar
and that will be pushed through the event_receiver
returned by Socket::bind
.
Variants
Packet(Packet)
A packet was received from a client.
Connect(SocketAddr)
A new client connected. Clients are uniquely identified by the ip:port combination at this layer.
Timeout(SocketAddr)
The client has been idling for a configurable amount of time. You can control the timeout in the config.
Trait Implementations
impl PartialEq<SocketEvent> for SocketEvent
[src]
fn eq(&self, other: &SocketEvent) -> bool
[src]
fn ne(&self, other: &SocketEvent) -> bool
[src]
impl Debug for SocketEvent
[src]
Auto Trait Implementations
impl Unpin for SocketEvent
impl Sync for SocketEvent
impl Send for SocketEvent
impl UnwindSafe for SocketEvent
impl RefUnwindSafe for SocketEvent
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,