pub struct WayfireSocket { /* private fields */ }Implementations§
Source§impl WayfireSocket
impl WayfireSocket
pub async fn connect() -> Result<Self>
pub async fn send_json(&mut self, msg: &MsgTemplate) -> Result<Value>
pub async fn read_exact(&mut self, n: usize) -> Result<Vec<u8>>
pub async fn read_message(&mut self) -> Result<Value>
pub async fn list_views(&mut self) -> Result<Vec<View>>
pub async fn list_outputs(&mut self) -> Result<Vec<Output>>
pub async fn list_wsets(&mut self) -> Result<Vec<WorkspaceSet>>
pub async fn list_input_devices(&mut self) -> Result<Vec<InputDevice>>
pub async fn get_configuration(&mut self) -> Result<WayfireConfiguration>
pub async fn get_option_value( &mut self, option: &str, ) -> Result<OptionValueResponse>
pub async fn get_output(&mut self, output_id: i64) -> Result<Output>
pub async fn get_view(&mut self, view_id: i64) -> Result<View>
pub async fn get_focused_view(&mut self) -> Result<View, Box<dyn Error>>
pub async fn get_focused_output(&mut self) -> Result<Output, Box<dyn Error>>
pub async fn get_view_alpha(&mut self, view_id: i64) -> Result<ViewAlpha>
pub async fn set_view_alpha( &mut self, view_id: i64, alpha: f64, ) -> Result<Value>
pub async fn get_tiling_layout( &mut self, wset: i64, x: i64, y: i64, ) -> Result<Layout>
pub async fn set_tiling_layout( &mut self, wset: i64, x: i64, y: i64, layout: &Layout, ) -> Result<Value>
pub async fn set_view_fullscreen( &mut self, view_id: i64, state: bool, ) -> Result<Value>
pub async fn expo_toggle(&mut self) -> Result<Value>
pub async fn scale_toggle(&mut self) -> Result<Value>
pub async fn scale_toggle_all(&mut self) -> Result<Value>
pub async fn cube_activate(&mut self) -> Result<Value>
pub async fn cube_rotate_left(&mut self) -> Result<Value>
pub async fn cube_rotate_right(&mut self) -> Result<Value>
pub async fn toggle_showdesktop(&mut self) -> Result<Value>
pub async fn set_view_sticky( &mut self, view_id: i64, state: bool, ) -> Result<Value>
pub async fn send_view_to_back( &mut self, view_id: i64, state: bool, ) -> Result<Value>
pub async fn set_view_minimized( &mut self, view_id: i64, state: bool, ) -> Result<Value>
pub async fn configure_input_device( &mut self, id: i64, enabled: bool, ) -> Result<Value>
pub async fn close_view(&mut self, view_id: i64) -> Result<Value>
pub async fn wset_info(&mut self, id: i64) -> Result<Value>
pub async fn watch(&mut self, events: Option<Vec<String>>) -> Result<Value>
pub async fn configure_view( &mut self, view_id: i64, x: i64, y: i64, w: i64, h: i64, output_id: Option<i64>, ) -> Result<Value>
pub async fn assign_slot(&mut self, view_id: i64, slot: &str) -> Result<Value>
pub async fn set_focus(&mut self, view_id: i64) -> Result<Value>
pub async fn set_workspace( &mut self, x: i64, y: i64, view_id: i64, output_id: i64, ) -> Result<Value>
pub async fn create_headless_output( &mut self, width: u32, height: u32, ) -> Result<Value>
pub async fn destroy_headless_output( &mut self, output_name: Option<String>, output_id: Option<i64>, ) -> Result<Value>
Auto Trait Implementations§
impl !Freeze for WayfireSocket
impl RefUnwindSafe for WayfireSocket
impl Send for WayfireSocket
impl Sync for WayfireSocket
impl Unpin for WayfireSocket
impl UnwindSafe for WayfireSocket
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