Struct wayland_commons::wire::Message[][src]

pub struct Message {
    pub sender_id: u32,
    pub opcode: u16,
    pub args: Vec<Argument>,
}

A wire message

Fields

ID of the object sending this message

Opcode of the message

Arguments of the message

Methods

impl Message
[src]

Serialize the contents of this message into provided buffers

Returns the number of elements writtent in each buffer

Any serialized Fd will be dup()-ed in the process

Attempts to parse a single wayland message with the given signature.

If the buffers contains several messages, only the first one will be parsed, and the unused tail of the buffers is returned. If a single message was present, the returned slices should thus be empty.

Errors if the message is malformed.

Trait Implementations

impl Debug for Message
[src]

Formats the value using the given formatter. Read more

impl Clone for Message
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Message
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Message

impl Sync for Message