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

impl Eq for WlBuffer[src]

impl Clone for WlBuffer[src]

impl PartialEq<WlBuffer> 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

Auto Trait Implementations

impl Unpin for WlBuffer

impl Sync for WlBuffer

impl Send for WlBuffer

impl !UnwindSafe for WlBuffer

impl !RefUnwindSafe for WlBuffer

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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