pub struct Channel<T> { /* private fields */ }
Expand description
The receiving end of the channel
This is the event source to be inserted into your EventLoop
.
Trait Implementations
sourceimpl<T: 'static> EventSource for Channel<T>
impl<T: 'static> EventSource for Channel<T>
sourcefn interest(&self) -> Ready
fn interest(&self) -> Ready
The interest value that will be given to
mio
when registering your sourcesourcefn pollopts(&self) -> PollOpt
fn pollopts(&self) -> PollOpt
The pollopt value that will be given to
mio
when registering your sourcesourcefn make_dispatcher<Data: 'static, F: FnMut(Event<T>, &mut Data) + 'static>(
&self,
callback: F
) -> Rc<RefCell<dyn EventDispatcher<Data>>>
fn make_dispatcher<Data: 'static, F: FnMut(Event<T>, &mut Data) + 'static>(
&self,
callback: F
) -> Rc<RefCell<dyn EventDispatcher<Data>>>
Wrap an user callback into a dispatcher, that will convert an
mio
readiness
into an event Read moreAuto Trait Implementations
impl<T> !RefUnwindSafe for Channel<T>
impl<T> !Send for Channel<T>
impl<T> !Sync for Channel<T>
impl<T> Unpin for Channel<T>
impl<T> !UnwindSafe for Channel<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more