swayipc 2.2.3

A library for controlling sway through its IPC interface
Documentation
mod command;
mod event;
#[cfg(feature = "async")]
mod not_sync;
pub mod reply;
mod socket;
#[cfg(not(feature = "async"))]
mod sync;
mod utils;

pub use event::EventType;
pub use failure::{bail, ensure, Error, Fallible};

#[cfg(feature = "async")]
pub use async_std::{self, task::block_on};
#[cfg(feature = "async")]
pub use not_sync::{Connection, EventIterator};
#[cfg(not(feature = "async"))]
pub use sync::{Connection, EventIterator};

const MAGIC: [u8; 6] = [105, 51, 45, 105, 112, 99];