Trait wayland_client::protocol::wl_shm::RequestsTrait
source · pub trait RequestsTrait {
fn create_pool<F>(
&self,
fd: RawFd,
size: i32,
implementor: F
) -> Result<Proxy<WlShmPool>, ()>
where
F: FnOnce(NewProxy<WlShmPool>) -> Proxy<WlShmPool>;
}Required Methods
sourcefn create_pool<F>(
&self,
fd: RawFd,
size: i32,
implementor: F
) -> Result<Proxy<WlShmPool>, ()>where
F: FnOnce(NewProxy<WlShmPool>) -> Proxy<WlShmPool>,
fn create_pool<F>(
&self,
fd: RawFd,
size: i32,
implementor: F
) -> Result<Proxy<WlShmPool>, ()>where
F: FnOnce(NewProxy<WlShmPool>) -> Proxy<WlShmPool>,
create 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.