Struct calloop::channel::Channel [−][src]
pub struct Channel<T> { /* fields omitted */ }
The receiving end of the channel
This is the event source to be inserted into your EventLoop
.
Trait Implementations
impl<T> Evented for Channel<T>
[src]
impl<T> Evented for Channel<T>
fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
[src]
fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
Register self
with the given Poll
instance. Read more
fn reregister(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
[src]
fn reregister(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
Re-register self
with the given Poll
instance. Read more
fn deregister(&self, poll: &Poll) -> Result<()>
[src]
fn deregister(&self, poll: &Poll) -> Result<()>
Deregister self
from the given Poll
instance Read more
impl<T: 'static> EventSource for Channel<T>
[src]
impl<T: 'static> EventSource for Channel<T>
type Event = Event<T>
The type of events generated by your sources
fn interest(&self) -> Ready
[src]
fn interest(&self) -> Ready
The interest value that will be given to mio
when registering your source
fn pollopts(&self) -> PollOpt
[src]
fn pollopts(&self) -> PollOpt
The pollopt value that will be given to mio
when registering your source
fn make_dispatcher<Data: 'static, F: FnMut(Event<T>, &mut Data) + 'static>(
&self,
callback: F
) -> Rc<RefCell<EventDispatcher<Data>>>
[src]
fn make_dispatcher<Data: 'static, F: FnMut(Event<T>, &mut Data) + 'static>(
&self,
callback: F
) -> Rc<RefCell<EventDispatcher<Data>>>
Wrap an user callback into a dispatcher, that will convert an mio
readiness into an event Read more