pub unsafe fn reregister(
        &mut self,
        fd: RawFd,
        interest: Interest,
        mode: Mode,
        token: *const Token,
    ) -> io::Result<()> {
        if (*token).is_invalid() {
            return Err(std::io::Error::new(
                std::io::ErrorKind::InvalidInput,
                "Invalid Token provided to reregister().",
            ));
        }
        self.poller.reregister(fd, interest, mode, token)
    }
/// Update the registration for a file descriptor
///
/// This allows you to change the interest, mode or token of a file
/// descriptor. Fails if the provided fd is not currently registered.
///
/// # Safety
///
/// You must ensure that the `*const Token` pointer provided remains alive
/// until your event source is re-registered or unregistered.
Update the registration for a file descriptor
This allows you to change the interest, mode or token of a file
descriptor. Fails if the provided fd is not currently registered.
Update the registration for a file descriptor This allows you to change the interest mode or token of a file descriptor . Fails if the provided fd is not currently registered .
pub unsafe fn reregister(
        &mut self,
        fd: RawFd,
        interest: Interest,
        mode: Mode,
        token: *const Token,
    ) -> io::Result<()> {
        if (*token).is_invalid() {
            return Err(std::io::Error::new(
                std::io::ErrorKind::InvalidInput,
                "Invalid Token provided to reregister().",
            ));
        }
        self.poller.reregister(fd, interest, mode, token)
    }
pub unsafe fn reregister ( & mut self , fd : RawFd , interest : Interest , mode : Mode , token : * const Token , ) -> io :: Result < ( ) > { if ( * token ) . is_invalid ( ) { return Err ( std :: io :: Error :: new ( std :: io :: ErrorKind :: InvalidInput , " " , ) ) ; } self . poller . reregister ( fd , interest , mode , token ) }
Update the registration for a file descriptor
This allows you to change the interest, mode or token of a file
descriptor.
Update the registration for a file descriptor This allows you to change the interest mode or token of a file descriptor .
&mut self
fd
RawFd
interest
Interest
mode
Mode
token
*const Token
&mut self
fd
RawFd
interest
Interest
mode
Mode
token
*const Token
safety
You must ensure that the `*const Token` pointer provided remains alive
until your event source is re-registered or unregistered.
You must ensure that the ` * const Token ` pointer provided remains alive until your event source is re - registered or unregistered .