Struct leftwm_core::utils::state_socket::StateSocket [−][src]
pub struct StateSocket { /* fields omitted */ }Implementations
Bind to Unix socket and listen.
Errors
Will error if build_listener() cannot be unwrapped or awaited.
As in build_listener(), this is likely a filesystem issue,
such as incorrect permissions or a non-existant file.
pub async fn write_manager_state<C: Config, SERVER: DisplayServer>(
&mut self,
manager: &Manager<C, SERVER>
) -> Result<()>
pub async fn write_manager_state<C: Config, SERVER: DisplayServer>(
&mut self,
manager: &Manager<C, SERVER>
) -> Result<()>
Errors
Will return Err if a mut ref to the peer is unavailable. Will return error if state cannot be serialized
Trait Implementations
Returns the “default value” for a type. Read more