[][src]Struct cdrs::events::Listener

pub struct Listener<X> { /* fields omitted */ }

Listener provides only one function start to start listening. It blocks a thread so should be moved into a separate one to no release main thread.

Methods

impl<X: CDRSTransport + 'static> Listener<RefCell<X>>[src]

pub fn start(self, compressor: &Compression) -> Result<()>[src]

It starts a process of listening to new events. Locks a frame.

Auto Trait Implementations

impl<X> !RefUnwindSafe for Listener<X>

impl<X> Send for Listener<X> where
    X: Send

impl<X> !Sync for Listener<X>

impl<X> Unpin for Listener<X> where
    X: Unpin

impl<X> !UnwindSafe for Listener<X>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.