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§
fn dmabuf_state(&mut self) -> &mut DmabufState
sourcefn dmabuf_feedback(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
proxy: &ZwpLinuxDmabufFeedbackV1,
feedback: DmabufFeedback,
)
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.
sourcefn created(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
params: &ZwpLinuxBufferParamsV1,
buffer: WlBuffer,
)
fn created( &mut self, conn: &Connection, qh: &QueueHandle<Self>, params: &ZwpLinuxBufferParamsV1, buffer: WlBuffer, )
wl_buffer
associated with params
has been created successfully.
sourcefn failed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
params: &ZwpLinuxBufferParamsV1,
)
fn failed( &mut self, conn: &Connection, qh: &QueueHandle<Self>, params: &ZwpLinuxBufferParamsV1, )
Failed to create wl_buffer
for params
.
sourcefn released(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
buffer: &WlBuffer,
)
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.