Struct wayland_server::Client[][src]

pub struct Client { /* fields omitted */ }

A handle to a client connected to your server

There can be several handles referring to the same client

Methods

impl Client
[src]

Check whether this client is still connected to the server

Check whether this client handle refers to the same client as an other

Flush the pending events to this client

Kills this client

Does nothing if the client is already dead

Access the map handling user data associated to this client

See UserDataMap documentation for details about its use.

Add a destructor for this client

This closure will be called when the client disconnects or is killed, It has access to the user data map associated to this client.

You can add several destructors which will all be called sequentially. Note that if you accidentally add two copies of the same closure, it'll be called twice.

The destructors will be executed on the thread containing the wayland event loop.

Create a new resource for this client

To ensure the state coherence between client and server, this resource should immediatly be implemented and sent to the client through and appropriate event. Failure to do so will likely cause protocol errors.

Trait Implementations

impl Clone for Client
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Client

impl Sync for Client