Skip to main content

GlobalData

Struct GlobalData 

Source
pub struct GlobalData;
Expand description

A struct used as the UserData field for globals bound by SCTK.

This is used instead of () to allow multiple Dispatch impls on the same object.

Trait Implementations§

Source§

impl Debug for GlobalData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D> Dispatch2<ExtBackgroundEffectManagerV1, D> for GlobalData

Source§

fn event( &self, data: &mut D, _manager: &ExtBackgroundEffectManagerV1, event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ExtBackgroundEffectSurfaceV1, D> for GlobalData

Source§

fn event( &self, _data: &mut D, _surface: &ExtBackgroundEffectSurfaceV1, _event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ExtForeignToplevelListV1, D> for GlobalData
where D: Dispatch<ExtForeignToplevelHandleV1, ForeignToplevelData> + ForeignToplevelListHandler + 'static,

Source§

fn event( &self, state: &mut D, proxy: &ExtForeignToplevelListV1, event: Event, conn: &Connection, qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, qhandle: &QueueHandle<D>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ExtSessionLockManagerV1, D> for GlobalData

Source§

fn event( &self, _state: &mut D, _proxy: &ExtSessionLockManagerV1, _event: Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<WlCompositor, D> for GlobalData

Source§

fn event( &self, _: &mut D, _: &WlCompositor, _: Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<WlDataDeviceManager, D> for GlobalData

Source§

fn event( &self, _state: &mut D, _proxy: &WlDataDeviceManager, _event: <WlDataDeviceManager as Proxy>::Event, _conn: &Connection, _qhandle: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<WlShm, D> for GlobalData
where D: ShmHandler,

Source§

fn event( &self, state: &mut D, _proxy: &WlShm, event: Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<WlSubcompositor, D> for GlobalData

Source§

fn event( &self, _: &mut D, _: &WlSubcompositor, _: <WlSubcompositor as Proxy>::Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<State> Dispatch2<WpCursorShapeDeviceV1, State> for GlobalData

Source§

fn event( &self, _: &mut State, _: &WpCursorShapeDeviceV1, _: <WpCursorShapeDeviceV1 as Proxy>::Event, _: &Connection, _: &QueueHandle<State>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<State> Dispatch2<WpCursorShapeManagerV1, State> for GlobalData

Source§

fn event( &self, _: &mut State, _: &WpCursorShapeManagerV1, _: <WpCursorShapeManagerV1 as Proxy>::Event, _: &Connection, _: &QueueHandle<State>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<WpPresentation, D> for GlobalData

Source§

fn event( &self, data: &mut D, _presentation: &WpPresentation, event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<XdgActivationV1, D> for GlobalData

Source§

fn event( &self, _: &mut D, _: &XdgActivationV1, _: <XdgActivationV1 as Proxy>::Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<XdgWmBase, D> for GlobalData

Source§

fn event( &self, _state: &mut D, xdg_wm_base: &XdgWmBase, event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<XxInputMethodManagerV2, D> for GlobalData

Source§

fn event( &self, _data: &mut D, _manager: &XxInputMethodManagerV2, _event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<XxKeyboardFilterManagerV1, D> for GlobalData

Source§

fn event( &self, _data: &mut D, _manager: &XxKeyboardFilterManagerV1, _event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<XxKeyboardFilterV1, D> for GlobalData

Source§

fn event( &self, _data: &mut D, _keyboard: &XxKeyboardFilterV1, _event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZwlrLayerShellV1, D> for GlobalData
where D: LayerShellHandler + 'static,

Source§

fn event( &self, _: &mut D, _: &ZwlrLayerShellV1, _: Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZwpInputMethodManagerV2, D> for GlobalData

Source§

fn event( &self, _data: &mut D, _manager: &ZwpInputMethodManagerV2, _event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZwpLinuxBufferParamsV1, D> for GlobalData
where D: Dispatch<WlBuffer, DmaBufferData> + DmabufHandler + 'static,

Source§

fn event( &self, state: &mut D, proxy: &ZwpLinuxBufferParamsV1, event: Event, conn: &Connection, qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, qhandle: &QueueHandle<D>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZwpLinuxDmabufV1, D> for GlobalData
where D: DmabufHandler,

Source§

fn event( &self, state: &mut D, proxy: &ZwpLinuxDmabufV1, event: Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZwpPointerConstraintsV1, D> for GlobalData

Source§

fn event( &self, _data: &mut D, _constraints: &ZwpPointerConstraintsV1, _event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZwpPrimarySelectionDeviceManagerV1, D> for GlobalData

Source§

fn event( &self, _: &mut D, _: &ZwpPrimarySelectionDeviceManagerV1, _: <ZwpPrimarySelectionDeviceManagerV1 as Proxy>::Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<State> Dispatch2<ZwpPrimarySelectionSourceV1, State> for GlobalData

Source§

fn event( &self, state: &mut State, proxy: &ZwpPrimarySelectionSourceV1, event: <ZwpPrimarySelectionSourceV1 as Proxy>::Event, conn: &Connection, qhandle: &QueueHandle<State>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZwpRelativePointerManagerV1, D> for GlobalData

Source§

fn event( &self, _data: &mut D, _manager: &ZwpRelativePointerManagerV1, _event: Event, _conn: &Connection, _qh: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZxdgDecorationManagerV1, D> for GlobalData
where D: WindowHandler,

Source§

fn event( &self, _: &mut D, _: &ZxdgDecorationManagerV1, _: Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Source§

impl<D> Dispatch2<ZxdgOutputManagerV1, D> for GlobalData
where D: OutputHandler,

Source§

fn event( &self, _: &mut D, _: &ZxdgOutputManagerV1, _: Event, _: &Connection, _: &QueueHandle<D>, )

Source§

fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more