Struct ethcore_io::IoManager
source · [−]Expand description
Root IO handler. Manages user handlers, messages and IO timers.
Implementations
Trait Implementations
sourceimpl<Message> Handler for IoManager<Message> where
Message: Send + Sync + 'static,
impl<Message> Handler for IoManager<Message> where
Message: Send + Sync + 'static,
type Message = IoMessage<Message>
type Message = IoMessage<Message>
👎 Deprecated since 0.6.5:
update to use Poll
sourcefn ready(
&mut self,
_event_loop: &mut EventLoop<Self>,
token: Token,
events: Ready
)
fn ready(
&mut self,
_event_loop: &mut EventLoop<Self>,
token: Token,
events: Ready
)
👎 Deprecated since 0.6.5:
update to use Poll
Invoked when the socket represented by token
is ready to be operated
on. events
indicates the specific operations that are
ready to be performed. Read more
sourcefn timeout(&mut self, event_loop: &mut EventLoop<Self>, token: Token)
fn timeout(&mut self, event_loop: &mut EventLoop<Self>, token: Token)
👎 Deprecated since 0.6.5:
update to use Poll
Invoked when a timeout has completed.
sourcefn notify(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Message)
fn notify(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Message)
👎 Deprecated since 0.6.5:
update to use Poll
Invoked when a message has been received via the event loop’s channel.
sourcefn interrupted(&mut self, event_loop: &mut EventLoop<Self>)
fn interrupted(&mut self, event_loop: &mut EventLoop<Self>)
👎 Deprecated since 0.6.5:
update to use Poll
Invoked when EventLoop
has been interrupted by a signal interrupt.
Auto Trait Implementations
impl<Message> !RefUnwindSafe for IoManager<Message>
impl<Message> Send for IoManager<Message>
impl<Message> !Sync for IoManager<Message>
impl<Message> Unpin for IoManager<Message>
impl<Message> !UnwindSafe for IoManager<Message>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more