pub unsafe fn register_handle(&self,
                                  handle: &AsRawHandle,
                                  token: Token,
                                  poll: &Poll) -> io::Result<()> {
        let selector = poll::selector(poll);

        // Ignore errors, we'll see them on the next line.
        drop(self.selector.fill(selector.inner.clone()));
        self.check_same_selector(poll)?;

        selector.inner.port.add_handle(usize::from(token), handle)
    }
/// Registers a new handle with the `Poll` specified, also assigning the
/// `token` specified.
///
/// This function is intended to be used as part of `Evented::register` for
/// custom IOCP objects. It will add the specified handle to the internal
/// IOCP object with the provided `token`. All future events generated by
/// the handled provided will be received by the `Poll`'s internal IOCP
/// object.
///
/// # Unsafety
///
/// This function is unsafe as the `Poll` instance has assumptions about
/// what the `OVERLAPPED` pointer used for each I/O operation looks like.
/// Specifically they must all be instances of the `Overlapped` type in
/// this crate. More information about this can be found on the
/// `windows` module in this crate.
Registers a new handle with the `Poll` specified, also assigning the
`token` specified.

This function is intended to be used as part of `Evented::register` for
custom IOCP objects. It will add the specified handle to the internal
IOCP object with the provided `token`. All future events generated by
the handled provided will be received by the `Poll`'s internal IOCP
object.
Registers a new handle with the ` Poll ` specified also assigning the ` token ` specified . This function is intended to be used as part of ` Evented :: register ` for custom IOCP objects . It will add the specified handle to the internal IOCP object with the provided ` token ` . All future events generated by the handled provided will be received by the ` Poll ` ' s internal IOCP object .
pub unsafe fn register_handle(&self,
                                  handle: &AsRawHandle,
                                  token: Token,
                                  poll: &Poll) -> io::Result<()> {
        let selector = poll::selector(poll);
        // Ignore errors, we'll see them on the next line.
        drop(self.selector.fill(selector.inner.clone()));
        self.check_same_selector(poll)?;
        selector.inner.port.add_handle(usize::from(token), handle)
    }
pub unsafe fn register_handle ( & self , handle : & AsRawHandle , token : Token , poll : & Poll ) -> io :: Result < ( ) > { let selector = poll :: selector ( poll ) ; // Ignore errors, we'll see them on the next line. drop ( self . selector . fill ( selector . inner . clone ( ) ) ) ; self . check_same_selector ( poll ) ? ; selector . inner . port . add_handle ( usize :: from ( token ) , handle ) }
Registers a new handle with the `Poll` specified, also assigning the
`token` specified.
Registers a new handle with the ` Poll ` specified also assigning the ` token ` specified .
&self
handle
&AsRawHandle
token
Token
poll
&Poll
&self
handle
&AsRawHandle
token
Token
poll
&Poll
unsafety
This function is unsafe as the `Poll` instance has assumptions about
what the `OVERLAPPED` pointer used for each I/O operation looks like.
Specifically they must all be instances of the `Overlapped` type in
this crate. More information about this can be found on the
`windows` module in this crate.
This function is unsafe as the ` Poll ` instance has assumptions about what the ` OVERLAPPED ` pointer used for each I / O operation looks like . Specifically they must all be instances of the ` Overlapped ` type in this crate . More information about this can be found on the ` windows ` module in this crate .