pub fn unregister_token<T>(&self, ctx:&Context<T>, token:Token)->io::Result<()> 
        where T:serialize::MessageHandler + Sized {
        
        let clients = ctx._conns.read().unwrap();
        let client = clients.get(token);
        if let Some(c) = client {
            //deregister self from selected poller
            return self._poller.deregister(&c._stream);
        }
        
        Ok(())
    }
//th context need a ?sized, handler 
th context need a ?sized, handler
th context need a ?sized handler
pub fn unregister_token<T>(&self, ctx:&Context<T>, token:Token)->io::Result<()> 
        where T:serialize::MessageHandler + Sized {
        let clients = ctx._conns.read().unwrap();
        let client = clients.get(token);
        if let Some(c) = client {
            //deregister self from selected poller
            return self._poller.deregister(&c._stream);
        }
        Ok(())
    }
pub fn unregister_token < T > ( & self , ctx : & Context < T > , token : Token ) -> io :: Result < ( ) > where T : serialize :: MessageHandler + Sized { let clients = ctx . _conns . read ( ) . unwrap ( ) ; let client = clients . get ( token ) ; if let Some ( c ) = client { //deregister self from selected poller return self . _poller . deregister ( & c . _stream ) ; } Ok ( ( ) ) }
th context need a ?sized, handler
th context need a ?sized handler
&self
ctx
&Context<T>
token
Token
&self
ctx
&Context<T>
token
Token