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

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

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a 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

Performs the conversion.

Performs the conversion.

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.