[][src]Struct i3ipc::I3EventListener

pub struct I3EventListener { /* fields omitted */ }

Abstraction over an ipc socket to i3. Handles events.

Methods

impl I3EventListener[src]

pub fn connect() -> Result<I3EventListener, EstablishError>[src]

Establishes the IPC connection.

pub fn subscribe(
    &mut self,
    events: &[Subscription]
) -> Result<Subscribe, MessageError>
[src]

Subscribes your connection to certain events.

Important traits for EventIterator<'a>
pub fn listen(&mut self) -> EventIterator[src]

Iterate over subscribed events forever.

Trait Implementations

impl Debug for I3EventListener[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]