pub struct AppState { /* private fields */ }Implementations§
Source§impl AppState
impl AppState
pub fn new( pointer: ManagedWlPointer, keyboard: ManagedWlKeyboard, shared_serial: Rc<SharedPointerSerial>, ) -> Self
pub fn set_global_context(&mut self, context: Rc<GlobalContext>)
pub fn set_slint_platform(&mut self, platform: Rc<CustomSlintPlatform>)
pub fn set_compilation_result( &mut self, compilation_result: Rc<CompilationResult>, )
pub fn set_queue_handle(&mut self, queue_handle: QueueHandle<AppState>)
pub fn lock_manager(&self) -> Option<&SessionLockManager>
pub fn lock_manager_mut(&mut self) -> Option<&mut SessionLockManager>
pub fn clear_lock_manager(&mut self)
pub fn is_session_lock_available(&self) -> bool
pub fn current_lock_state(&self) -> Option<LockState>
pub fn register_session_lock_callback( &mut self, callback_name: impl Into<String>, handler: Rc<dyn Fn(&[Value]) -> Value>, )
pub fn register_session_lock_callback_with_filter( &mut self, callback_name: impl Into<String>, handler: Rc<dyn Fn(&[Value]) -> Value>, filter: OutputFilter, )
pub fn register_session_lock_property_operation( &mut self, property_operation: LockPropertyOperation, )
pub fn activate_session_lock( &mut self, component_name: &str, config: LockConfig, ) -> Result<()>
pub fn deactivate_session_lock(&mut self) -> Result<()>
pub fn session_lock_component_name(&self) -> Option<String>
pub fn iter_lock_surfaces( &self, f: &mut dyn FnMut(OutputHandle, &ComponentInstance), )
pub fn count_lock_surfaces(&self) -> usize
pub fn handle_output_added_for_lock( &mut self, output: &WlOutput, queue_handle: &QueueHandle<AppState>, ) -> Result<()>
pub fn handle_output_removed_for_lock(&mut self, output_id: &ObjectId)
pub fn set_output_manager(&mut self, manager: Rc<RefCell<OutputManager>>)
pub fn output_manager(&self) -> Option<Rc<RefCell<OutputManager>>>
pub fn register_registry_name(&mut self, name: u32, output_id: ObjectId)
pub fn find_output_id_by_registry_name(&self, name: u32) -> Option<ObjectId>
pub fn unregister_registry_name(&mut self, name: u32) -> Option<ObjectId>
pub fn add_shell_surface( &mut self, output_id: &ObjectId, surface_handle: SurfaceHandle, surface_name: &str, main_surface_id: ObjectId, surface_state: SurfaceState, )
pub fn add_output( &mut self, output_id: &ObjectId, surface_handle: SurfaceHandle, surface_name: &str, main_surface_id: ObjectId, surface_state: SurfaceState, )
pub fn remove_output(&mut self, handle: OutputHandle) -> Vec<SurfaceState>
pub fn get_surface_by_key(&self, key: &ShellSurfaceKey) -> Option<&SurfaceState>
pub fn get_surface_by_key_mut( &mut self, key: &ShellSurfaceKey, ) -> Option<&mut SurfaceState>
pub fn get_surface_by_instance( &self, surface_handle: SurfaceHandle, output_handle: OutputHandle, ) -> Option<&SurfaceState>
pub fn get_surface_by_instance_mut( &mut self, surface_handle: SurfaceHandle, output_handle: OutputHandle, ) -> Option<&mut SurfaceState>
pub fn get_output_by_output_id( &self, output_id: &ObjectId, ) -> Option<&SurfaceState>
pub fn get_output_by_output_id_mut( &mut self, output_id: &ObjectId, ) -> Option<&mut SurfaceState>
pub fn get_output_by_surface( &self, surface_id: &ObjectId, ) -> Option<&SurfaceState>
pub fn get_output_by_surface_mut( &mut self, surface_id: &ObjectId, ) -> Option<&mut SurfaceState>
pub fn get_output_by_layer_surface_mut( &mut self, layer_surface_id: &ObjectId, ) -> Option<&mut SurfaceState>
pub fn get_surface_name(&self, surface_handle: SurfaceHandle) -> Option<&str>
pub fn get_key_by_surface( &self, surface_id: &ObjectId, ) -> Option<&ShellSurfaceKey>
pub fn get_handle_by_surface( &self, surface_id: &ObjectId, ) -> Option<OutputHandle>
pub fn get_handle_by_output_id( &self, output_id: &ObjectId, ) -> Option<OutputHandle>
pub fn ensure_output_registered(&mut self, output_id: &ObjectId) -> OutputHandle
pub fn set_active_output_handle(&mut self, handle: Option<OutputHandle>)
pub fn active_output_handle(&self) -> Option<OutputHandle>
pub fn set_active_surface_key(&mut self, key: Option<ShellSurfaceKey>)
pub fn active_surface_key(&self) -> Option<&ShellSurfaceKey>
pub fn active_surface_mut(&mut self) -> Option<&mut SurfaceState>
pub fn primary_output(&self) -> Option<&SurfaceState>
pub fn primary_output_handle(&self) -> Option<OutputHandle>
pub fn active_output(&self) -> Option<&SurfaceState>
pub fn all_outputs(&self) -> impl Iterator<Item = &SurfaceState>
pub fn all_outputs_mut(&mut self) -> impl Iterator<Item = &mut SurfaceState>
pub fn surfaces_for_output( &self, handle: OutputHandle, ) -> impl Iterator<Item = (&str, &SurfaceState)> + '_
pub fn surfaces_with_keys( &self, ) -> impl Iterator<Item = (&ShellSurfaceKey, &SurfaceState)>
pub fn handle_keymap(&mut self, fd: BorrowedFd<'_>, size: u32)
pub fn handle_keyboard_enter( &mut self, _serial: u32, surface: &WlSurface, _keys: &[u8], )
pub fn handle_keyboard_leave(&mut self, _serial: u32, surface: &WlSurface)
pub fn handle_key( &mut self, _serial: u32, _time: u32, key: u32, state: KeyState, )
pub fn handle_modifiers( &mut self, _serial: u32, mods_depressed: u32, mods_latched: u32, mods_locked: u32, group: u32, )
pub fn handle_repeat_info(&mut self, rate: i32, delay: i32)
pub fn find_output_by_popup( &self, popup_surface_id: &ObjectId, ) -> Option<&SurfaceState>
pub fn find_output_by_popup_mut( &mut self, popup_surface_id: &ObjectId, ) -> Option<&mut SurfaceState>
pub fn get_key_by_popup( &self, popup_surface_id: &ObjectId, ) -> Option<&ShellSurfaceKey>
pub fn get_handle_by_popup( &self, popup_surface_id: &ObjectId, ) -> Option<OutputHandle>
pub fn get_output_by_handle_mut( &mut self, handle: OutputHandle, ) -> Option<&mut SurfaceState>
pub fn get_output_info(&self, handle: OutputHandle) -> Option<&OutputInfo>
pub fn get_output_info_mut( &mut self, handle: OutputHandle, ) -> Option<&mut OutputInfo>
pub fn all_output_info(&self) -> impl Iterator<Item = &OutputInfo>
pub const fn output_registry(&self) -> &OutputRegistry
pub fn shell_surface_names(&self) -> Vec<&str>
pub fn surfaces_by_name(&self, surface_name: &str) -> Vec<&SurfaceState>
pub fn surfaces_by_name_mut( &mut self, surface_name: &str, ) -> Vec<&mut SurfaceState>
pub fn surfaces_by_handle(&self, handle: SurfaceHandle) -> Vec<&SurfaceState>
pub fn surfaces_by_handle_mut( &mut self, handle: SurfaceHandle, ) -> Vec<&mut SurfaceState>
pub fn surfaces_by_name_and_output( &self, name: &str, output: OutputHandle, ) -> Vec<&SurfaceState>
pub fn surfaces_by_name_and_output_mut( &mut self, name: &str, output: OutputHandle, ) -> Vec<&mut SurfaceState>
pub fn get_output_by_handle( &self, handle: OutputHandle, ) -> Option<&SurfaceState>
pub fn outputs_with_handles( &self, ) -> impl Iterator<Item = (OutputHandle, &SurfaceState)>
pub fn outputs_with_info( &self, ) -> impl Iterator<Item = (&OutputInfo, &SurfaceState)>
pub fn all_surfaces_for_output_mut( &mut self, output_id: &ObjectId, ) -> Vec<&mut SurfaceState>
pub fn remove_surfaces_by_name( &mut self, surface_name: &str, ) -> Vec<SurfaceState>
Trait Implementations§
Source§impl Dispatch<ExtSessionLockManagerV1, ()> for AppState
impl Dispatch<ExtSessionLockManagerV1, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &ExtSessionLockManagerV1,
_event: <ExtSessionLockManagerV1 as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &ExtSessionLockManagerV1, _event: <ExtSessionLockManagerV1 as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<ExtSessionLockSurfaceV1, ()> for AppState
impl Dispatch<ExtSessionLockSurfaceV1, ()> for AppState
Source§fn event(
state: &mut Self,
lock_surface: &ExtSessionLockSurfaceV1,
event: Event,
_data: &(),
_conn: &Connection,
_queue_handle: &QueueHandle<Self>,
)
fn event( state: &mut Self, lock_surface: &ExtSessionLockSurfaceV1, event: Event, _data: &(), _conn: &Connection, _queue_handle: &QueueHandle<Self>, )
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
Source§impl Dispatch<ExtSessionLockV1, ()> for AppState
impl Dispatch<ExtSessionLockV1, ()> for AppState
Source§fn event(
state: &mut Self,
_proxy: &ExtSessionLockV1,
event: Event,
_data: &(),
_conn: &Connection,
_queue_handle: &QueueHandle<Self>,
)
fn event( state: &mut Self, _proxy: &ExtSessionLockV1, event: Event, _data: &(), _conn: &Connection, _queue_handle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WlCompositor, ()> for AppState
impl Dispatch<WlCompositor, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &WlCompositor,
_event: <WlCompositor as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &WlCompositor, _event: <WlCompositor as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WlKeyboard, ()> for AppState
impl Dispatch<WlKeyboard, ()> for AppState
Source§fn event(
state: &mut Self,
_proxy: &WlKeyboard,
event: <WlKeyboard as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, _proxy: &WlKeyboard, event: <WlKeyboard as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WlOutput, ()> for AppState
impl Dispatch<WlOutput, ()> for AppState
Source§fn event(
state: &mut Self,
proxy: &WlOutput,
event: <WlOutput as Proxy>::Event,
_data: &(),
_conn: &Connection,
qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, proxy: &WlOutput, event: <WlOutput as Proxy>::Event, _data: &(), _conn: &Connection, qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WlPointer, ()> for AppState
impl Dispatch<WlPointer, ()> for AppState
Source§fn event(
state: &mut Self,
_proxy: &WlPointer,
event: <WlPointer as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, _proxy: &WlPointer, event: <WlPointer as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WlRegistry, GlobalListContents> for AppState
impl Dispatch<WlRegistry, GlobalListContents> for AppState
Source§fn event(
state: &mut Self,
registry: &WlRegistry,
event: <WlRegistry as Proxy>::Event,
_data: &GlobalListContents,
_conn: &Connection,
qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, registry: &WlRegistry, event: <WlRegistry as Proxy>::Event, _data: &GlobalListContents, _conn: &Connection, qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WlSeat, ()> for AppState
impl Dispatch<WlSeat, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &WlSeat,
_event: <WlSeat as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &WlSeat, _event: <WlSeat as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WlSurface, ()> for AppState
impl Dispatch<WlSurface, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &WlSurface,
_event: <WlSurface as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &WlSurface, _event: <WlSurface as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WpFractionalScaleManagerV1, ()> for AppState
impl Dispatch<WpFractionalScaleManagerV1, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &WpFractionalScaleManagerV1,
_event: <WpFractionalScaleManagerV1 as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &WpFractionalScaleManagerV1, _event: <WpFractionalScaleManagerV1 as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WpFractionalScaleV1, ()> for AppState
impl Dispatch<WpFractionalScaleV1, ()> for AppState
Source§fn event(
state: &mut Self,
proxy: &WpFractionalScaleV1,
event: Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, proxy: &WpFractionalScaleV1, event: Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WpViewport, ()> for AppState
impl Dispatch<WpViewport, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &WpViewport,
_event: <WpViewport as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &WpViewport, _event: <WpViewport as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<WpViewporter, ()> for AppState
impl Dispatch<WpViewporter, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &WpViewporter,
_event: <WpViewporter as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &WpViewporter, _event: <WpViewporter as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<XdgPopup, ()> for AppState
impl Dispatch<XdgPopup, ()> for AppState
Source§fn event(
state: &mut Self,
xdg_popup: &XdgPopup,
event: Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, xdg_popup: &XdgPopup, event: Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<XdgPositioner, ()> for AppState
impl Dispatch<XdgPositioner, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &XdgPositioner,
_event: <XdgPositioner as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &XdgPositioner, _event: <XdgPositioner as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<XdgSurface, ()> for AppState
impl Dispatch<XdgSurface, ()> for AppState
Source§fn event(
state: &mut Self,
xdg_surface: &XdgSurface,
event: Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( state: &mut Self, xdg_surface: &XdgSurface, event: Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<XdgWmBase, ()> for AppState
impl Dispatch<XdgWmBase, ()> for AppState
Source§fn event(
_state: &mut Self,
xdg_wm_base: &XdgWmBase,
event: Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, xdg_wm_base: &XdgWmBase, event: Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<ZwlrLayerShellV1, ()> for AppState
impl Dispatch<ZwlrLayerShellV1, ()> for AppState
Source§fn event(
_state: &mut Self,
_proxy: &ZwlrLayerShellV1,
_event: <ZwlrLayerShellV1 as Proxy>::Event,
_data: &(),
_conn: &Connection,
_qhandle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &ZwlrLayerShellV1, _event: <ZwlrLayerShellV1 as Proxy>::Event, _data: &(), _conn: &Connection, _qhandle: &QueueHandle<Self>, )
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
Source§impl Dispatch<ZwlrLayerSurfaceV1, ()> for AppState
impl Dispatch<ZwlrLayerSurfaceV1, ()> for AppState
Source§fn event(
state: &mut Self,
layer_surface: &ZwlrLayerSurfaceV1,
event: Event,
_data: &(),
_conn: &Connection,
_queue_handle: &QueueHandle<Self>,
)
fn event( state: &mut Self, layer_surface: &ZwlrLayerSurfaceV1, event: Event, _data: &(), _conn: &Connection, _queue_handle: &QueueHandle<Self>, )
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 AppState
impl !RefUnwindSafe for AppState
impl !Send for AppState
impl !Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn 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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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.Source§fn as_any(&self) -> &(dyn Any + 'static)
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.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more