pub struct Name<'a> {
pub name: Str<'a>,
}
Expand description
unique identifier for this seat
In a multi-seat configuration the seat name can be used by clients to
help identify which physical devices the seat represents.
The seat name is a UTF-8 string with no convention defined for its
contents. Each name is unique among all wl_seat globals. The name is
only guaranteed to be unique for the current compositor instance.
The same seat names are used for all clients. Thus, the name can be
shared across processes to refer to a specific wl_seat global.
The name event is sent after binding to the seat global. This event is
only sent once per seat object, and the name does not change over the
lifetime of the wl_seat global.
Compositors may re-use the same seat name if the wl_seat global is
destroyed and re-created later.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Deserialize from the given buffer. Returns deserialized message, and
number of bytes and file descriptors consumed, respectively.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
Serialize into the buffered writer. This function returns no errors,
failures in seializing are generally program errors, and triggers
panicking.
Read more
How many bytes will this message serialize to. Including the 8 byte
header.
How many file descriptors will this message serialize to.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Checks if this value is equivalent to the given key.
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.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
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.