Struct smithay_client_toolkit::environment::SimpleGlobal
source · [−]pub struct SimpleGlobal<I: Interface> { /* private fields */ }
Expand description
A minimalist global handler for “single” globals
This handler will simply register the global as soon as the registry signals it, and do nothing more.
It is appropriate for globals that never generate events, like wl_compositor
or wl_data_device_manager
.
Implementations
sourceimpl<I: Interface> SimpleGlobal<I>
impl<I: Interface> SimpleGlobal<I>
sourcepub fn new() -> SimpleGlobal<I>
pub fn new() -> SimpleGlobal<I>
Create a new handler
Trait Implementations
sourceimpl<I: Debug + Interface> Debug for SimpleGlobal<I>
impl<I: Debug + Interface> Debug for SimpleGlobal<I>
sourceimpl<I: Interface + Clone + From<Proxy<I>> + AsRef<Proxy<I>>> GlobalHandler<I> for SimpleGlobal<I>
impl<I: Interface + Clone + From<Proxy<I>> + AsRef<Proxy<I>>> GlobalHandler<I> for SimpleGlobal<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for SimpleGlobal<I> where
I: RefUnwindSafe,
impl<I> !Send for SimpleGlobal<I>
impl<I> !Sync for SimpleGlobal<I>
impl<I> Unpin for SimpleGlobal<I> where
I: Unpin,
impl<I> UnwindSafe for SimpleGlobal<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more