[−][src]Struct i3ipc::I3EventListener
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]
&mut self,
events: &[Subscription]
) -> Result<Subscribe, MessageError>
Subscribes your connection to certain events.
ⓘImportant traits for EventIterator<'a>pub fn listen(&mut self) -> EventIterator
[src]
ⓘImportant traits for EventIterator<'a>
Iterate over subscribed events forever.
Trait Implementations
Auto Trait Implementations
impl Send for I3EventListener
impl Sync for I3EventListener
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,