From 3308cb578bba24d290f2a8d1e7dd2c14f8bfaefe Mon Sep 17 00:00:00 2001 From: Timmy Xiao <34635512+tzx@users.noreply.github.com> Date: Wed, 3 Jan 2024 20:28:32 -0500 Subject: [PATCH] Connections compile without complaining; time for window --- window/src/os/wayland/connection.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/window/src/os/wayland/connection.rs b/window/src/os/wayland/connection.rs index faed4ad76..93ab2e44d 100644 --- a/window/src/os/wayland/connection.rs +++ b/window/src/os/wayland/connection.rs @@ -1 +1,25 @@ +use crate::ConnectionOps; + pub struct WaylandConnection {} + +impl WaylandConnection { + pub(crate) fn create_new() -> anyhow::Result { + Ok( WaylandConnection{} ) + } + + pub(crate) fn advise_of_appearance_change(&self, appearance: crate::Appearance) {} +} + +impl ConnectionOps for WaylandConnection { + fn name(&self) -> String { + todo!() + } + + fn terminate_message_loop(&self) { + todo!() + } + + fn run_message_loop(&self) -> anyhow::Result<()> { + todo!() + } +}