pub struct WlShmPool;
Expand description
a shared memory pool
The wl_shm_pool object encapsulates a piece of memory shared between the compositor and client. Through the wl_shm_pool object, the client can allocate shared memory wl_buffer objects. All objects created through the same pool share the same underlying mapped memory. Reusing the mapped memory avoids the setup/teardown overhead and is useful when interactively resizing a surface or for many small buffers.
Trait Implementations§
Source§impl Interface for WlShmPool
impl Interface for WlShmPool
Source§const NAME: &'static str = "wl_shm_pool"
const NAME: &'static str = "wl_shm_pool"
The name of this interface. This will correspond to the ‘name’ attribute
on the ‘interface’ element in the wayland protocol XML.
Auto Trait Implementations§
impl Freeze for WlShmPool
impl RefUnwindSafe for WlShmPool
impl Send for WlShmPool
impl Sync for WlShmPool
impl Unpin for WlShmPool
impl UnwindSafe for WlShmPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more