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§

source

fn foreign_toplevel_list_state(&mut self) -> &mut ForeignToplevelList

source

fn new_toplevel( &mut self, conn: &Connection, qh: &QueueHandle<Self>, toplevel_handle: ExtForeignToplevelHandleV1, )

A new toplevel has been opened.

source

fn update_toplevel( &mut self, conn: &Connection, qh: &QueueHandle<Self>, toplevel_handle: ExtForeignToplevelHandleV1, )

An existing toplevel has changed.

source

fn toplevel_closed( &mut self, conn: &Connection, qh: &QueueHandle<Self>, toplevel_handle: ExtForeignToplevelHandleV1, )

A toplevel has closed.

Provided Methods§

source

fn finished(&mut self, _conn: &Connection, _qh: &QueueHandle<Self>)

Object Safety§

This trait is not object safe.

Implementors§