Enum wayland_server::protocol::wl_shm::Request [−][src]
pub enum Request {
CreatePool {
id: NewResource<WlShmPool>,
fd: RawFd,
size: i32,
},
}Variants
CreatePoolcreate a shm pool
Create a new wl_shm_pool object.
The pool can be used to create shared memory based buffer objects. The server will mmap size bytes of the passed file descriptor, to use as backing memory for the pool.
Fields of CreatePool
id: NewResource<WlShmPool> | |
fd: RawFd | |
size: i32 |
Trait Implementations
impl MessageGroup for Request[src]
impl MessageGroup for Requestconst MESSAGES: &'static [MessageDesc]
MESSAGES: &'static [MessageDesc] = &[super::MessageDesc{name: "create_pool", since: 1, signature: &[super::ArgumentType::NewId, super::ArgumentType::Fd, super::ArgumentType::Int],}]
Wire representation of this MessageGroup
type Map = ResourceMap
The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more
fn is_destructor(&self) -> bool[src]
fn is_destructor(&self) -> boolWhether this message is a destructor Read more
fn opcode(&self) -> u16[src]
fn opcode(&self) -> u16The opcode of this message
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>[src]
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>Retrieve the child Object associated with this message if any
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>[src]
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>Construct a message from its raw representation
fn into_raw(self, sender_id: u32) -> Message[src]
fn into_raw(self, sender_id: u32) -> MessageTurn this message into its raw representation