[−][src]Enum harlequinn::EndpointEvent
An event raised on the endpoint.
Variants
A connection initiated by this endpoint has failed.
Fields of ConnectionFailed
peer_id: PeerId
Associated peer id.
A new connection has been requested by a peer.
You can use this to filter connections, limit player counts, etc.
Either accept or reject a connection using RivetsEndpoint::accept
and
RivetsEndpoint::reject
.
Fields of ConnectionRequested
peer_id: PeerId
Associated peer id.
socket_addr: SocketAddr
The socket address of the connecting peer.
is_client: bool
If true, the endpoint that has been connected to is a client.
An accepted connection got disconnected.
This will always be raised regardless of if the peer's request was accepted or not, because this could happen before the game loop gets to processing the request.
Fields of Disconnected
A datagram was received from a peer.
A reliable message was received from a peer.
Auto Trait Implementations
impl Send for EndpointEvent
impl Sync for EndpointEvent
impl Unpin for EndpointEvent
impl UnwindSafe for EndpointEvent
impl RefUnwindSafe for EndpointEvent
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 = !
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,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,