Struct wayland_commons::map::ObjectMap [−][src]
pub struct ObjectMap<Meta: ObjectMetadata> { /* fields omitted */ }
Expand description
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.
Implementations
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