[][src]Struct wayland_server::protocol::wl_buffer::WlBuffer

pub struct WlBuffer(_);

Methods

impl WlBuffer[src]

pub fn release(&self)[src]

compositor releases buffer

Sent when this wl_buffer is no longer used by the compositor. The client is now free to reuse or destroy this buffer and its backing storage.

If a client receives a release event before the frame callback requested in the same wl_surface.commit that attaches this wl_buffer to a surface, then the client is immediately free to reuse the buffer and its backing storage, and does not need a second buffer for the next surface content update. Typically this is possible, when the compositor maintains a copy of the wl_surface contents, e.g. as a GL texture. This is an important optimization for GL(ES) compositors with wl_shm clients.

Trait Implementations

impl<T: RequestHandler> HandledBy<T> for WlBuffer[src]

impl Clone for WlBuffer[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Resource<WlBuffer>> for WlBuffer[src]

impl From<WlBuffer> for Resource<WlBuffer>[src]

impl Eq for WlBuffer[src]

impl PartialEq<WlBuffer> for WlBuffer[src]

impl AsRef<Resource<WlBuffer>> for WlBuffer[src]

impl Interface for WlBuffer[src]

type Request = Request

Set of requests associated to this interface Read more

type Event = Event

Set of events associated to this interface Read more

Auto Trait Implementations

impl Send for WlBuffer

impl Sync for WlBuffer

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]