Trait smithay_client_toolkit::dmabuf::DmabufHandler

source ·
pub trait DmabufHandler: Sized {
    // Required methods
    fn dmabuf_state(&mut self) -> &mut DmabufState;
    fn dmabuf_feedback(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        proxy: &ZwpLinuxDmabufFeedbackV1,
        feedback: DmabufFeedback,
    );
    fn created(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        params: &ZwpLinuxBufferParamsV1,
        buffer: WlBuffer,
    );
    fn failed(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        params: &ZwpLinuxBufferParamsV1,
    );
    fn released(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        buffer: &WlBuffer,
    );
}

Required Methods§

source

fn dmabuf_state(&mut self) -> &mut DmabufState

source

fn dmabuf_feedback( &mut self, conn: &Connection, qh: &QueueHandle<Self>, proxy: &ZwpLinuxDmabufFeedbackV1, feedback: DmabufFeedback, )

Server has sent dmabuf feedback information. This may be received multiple times by a ZwpLinuxDmabufFeedbackV1 object.

source

fn created( &mut self, conn: &Connection, qh: &QueueHandle<Self>, params: &ZwpLinuxBufferParamsV1, buffer: WlBuffer, )

wl_buffer associated with params has been created successfully.

source

fn failed( &mut self, conn: &Connection, qh: &QueueHandle<Self>, params: &ZwpLinuxBufferParamsV1, )

Failed to create wl_buffer for params.

source

fn released( &mut self, conn: &Connection, qh: &QueueHandle<Self>, buffer: &WlBuffer, )

Compositor has released a wl_buffer created through DmabufParams.

Object Safety§

This trait is not object safe.

Implementors§