Struct wayland_commons::map::ObjectMap[][src]

pub struct ObjectMap<Meta: ObjectMetadata> { /* fields omitted */ }

A holder for the object store of a connection

Keeps track of which object id is associated to which interface object, and which is currently unused.

Methods

impl<Meta: ObjectMetadata> ObjectMap<Meta>
[src]

Create a new empty object map

Find an object in the store

Remove an object from the store

Does nothing if the object didn't previously exists

Insert given object for given id

Can fail if the requested id is not the next free id of this store. (In which case this is a protocol error)

Allocate a new id for an object in the client namespace

Allocate a new id for an object in the server namespace

Mutably access an object of the map

Mutably access all objects of the map in sequence

Auto Trait Implementations

impl<Meta> Send for ObjectMap<Meta> where
    Meta: Send

impl<Meta> Sync for ObjectMap<Meta> where
    Meta: Sync