pub trait ForeignToplevelListHandler: Sized {
// Required methods
fn foreign_toplevel_list_state(&mut self) -> &mut ForeignToplevelList;
fn new_toplevel(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
toplevel_handle: ExtForeignToplevelHandleV1,
);
fn update_toplevel(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
toplevel_handle: ExtForeignToplevelHandleV1,
);
fn toplevel_closed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
toplevel_handle: ExtForeignToplevelHandleV1,
);
// Provided method
fn finished(&mut self, _conn: &Connection, _qh: &QueueHandle<Self>) { ... }
}
Expand description
Handler trait for foreign toplevel list protocol.
Required Methods§
fn foreign_toplevel_list_state(&mut self) -> &mut ForeignToplevelList
sourcefn new_toplevel(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
toplevel_handle: ExtForeignToplevelHandleV1,
)
fn new_toplevel( &mut self, conn: &Connection, qh: &QueueHandle<Self>, toplevel_handle: ExtForeignToplevelHandleV1, )
A new toplevel has been opened.
sourcefn update_toplevel(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
toplevel_handle: ExtForeignToplevelHandleV1,
)
fn update_toplevel( &mut self, conn: &Connection, qh: &QueueHandle<Self>, toplevel_handle: ExtForeignToplevelHandleV1, )
An existing toplevel has changed.
sourcefn toplevel_closed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
toplevel_handle: ExtForeignToplevelHandleV1,
)
fn toplevel_closed( &mut self, conn: &Connection, qh: &QueueHandle<Self>, toplevel_handle: ExtForeignToplevelHandleV1, )
A toplevel has closed.
Provided Methods§
Object Safety§
This trait is not object safe.