pub struct GlobalListContents { /* private fields */ }Expand description
A container representing the current contents of the list of globals
Implementations§
Source§impl GlobalListContents
impl GlobalListContents
Sourcepub fn with_list<T, F: FnOnce(&[Global]) -> T>(&self, f: F) -> T
pub fn with_list<T, F: FnOnce(&[Global]) -> T>(&self, f: F) -> T
Access the list of globals
Your closure is invoked on the global list, and its return value is forwarded to the return value of this function. This allows you to process the list without making a copy.
Sourcepub fn clone_list(&self) -> Vec<Global>
pub fn clone_list(&self) -> Vec<Global>
Get a copy of the contents of the list of globals.
Trait Implementations§
Source§impl Debug for GlobalListContents
impl Debug for GlobalListContents
Source§impl<D> Dispatch<WlRegistry, D> for GlobalListContentswhere
D: GlobalListHandler,
impl<D> Dispatch<WlRegistry, D> for GlobalListContentswhere
D: GlobalListHandler,
Source§fn event(
&self,
state: &mut D,
registry: &WlRegistry,
event: Event,
conn: &Connection,
qh: &QueueHandle<D>,
)
fn event( &self, state: &mut D, registry: &WlRegistry, event: Event, conn: &Connection, qh: &QueueHandle<D>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Auto Trait Implementations§
impl !Freeze for GlobalListContents
impl !RefUnwindSafe for GlobalListContents
impl Send for GlobalListContents
impl Sync for GlobalListContents
impl Unpin for GlobalListContents
impl UnsafeUnpin for GlobalListContents
impl !UnwindSafe for GlobalListContents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more