pub struct Server { /* private fields */ }
Expand description

WebSockets server implementation.

Implementations

Returns the address this server is listening on

Returns a Broadcaster that can be used to send messages on all connections.

Starts a new WebSocket server in separate thread. Returns a Server handle which closes the server when droped.

Consumes the server and waits for completion

Closes the server and waits for it to finish

Returns a handle to the server that can be used to close it while another thread is blocking in wait.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.