pub struct Endpoint { /* fields omitted */ }
An endpoint created for a specific socket. Each endpoint is identified
by a unique return value that can be further passed to a shutdown
function. The shutdown is done through the endpoint itself and not the Socket
Removes an endpoint from the socket that created it (via bind
or connect
).
The call will return immediately, however,
the library will try to deliver any outstanding outbound messages to the endpoint
for the time specified by Socket::set_linger
.