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

pub struct WlBuffer(_);

Implementations

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 AsRef<Resource<WlBuffer>> for WlBuffer[src]

impl Clone for WlBuffer[src]

impl Debug for WlBuffer[src]

impl Eq for WlBuffer[src]

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

impl From<WlBuffer> for Resource<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

impl PartialEq<WlBuffer> for WlBuffer[src]

impl StructuralEq for WlBuffer[src]

impl StructuralPartialEq for WlBuffer[src]

Auto Trait Implementations

impl !RefUnwindSafe for WlBuffer

impl Send for WlBuffer

impl Sync for WlBuffer

impl Unpin for WlBuffer

impl !UnwindSafe for WlBuffer

Blanket Implementations

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

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

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

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

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.