pub struct ListeningServer(_);
A server listeing on a socket
Gets the SocketAddr
which the server is currently listening on.
Detaches the server thread.
This doesn't actually kill the server, it just stops the current thread from
blocking due to the server running. In the case where main
returns due to
this unblocking, then the server will be killed due to process death.
The required use of this is when writing unit tests which spawn servers and do
not want to block the test-runner by waiting on the server to stop because
it probably never will.
See this hyper issue for more
information.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
impl<T> Typeable for T where T: Any, | |
Get the TypeId
of this object.
impl<T> UnsafeAny for T where T: Any, | |