pub fn close(&self) -> Result<(), Error> {
		let buf = [0u8; BUFFER_SIZE];
		let mut guarded_data = nioruntime_util::lockw!(self.guarded_data);
		let wbuffer = WriteBuffer {
			buffer: buf.clone(),
			offset: 0,
			len: 0,
			close: true,
			connection_id: self.connection_id,
		};
		guarded_data.write_queue.push(wbuffer);
		guarded_data.wakeup()?;

		Ok(())
	}
/// Close the connection associated with this write handle.
Close the connection associated with this write handle.
Close the connection associated with this write handle .
pub fn close(&self) -> Result<(), Error> {
		let buf = [0u8; BUFFER_SIZE];
		let mut guarded_data = nioruntime_util::lockw!(self.guarded_data);
		let wbuffer = WriteBuffer {
			buffer: buf.clone(),
			offset: 0,
			len: 0,
			close: true,
			connection_id: self.connection_id,
		};
		guarded_data.write_queue.push(wbuffer);
		guarded_data.wakeup()?;
		Ok(())
	}
pub fn close ( & self ) -> Result < ( ) , Error > { let buf = [ 0u8 ; BUFFER_SIZE ] ; let mut guarded_data = nioruntime_util :: lockw ! ( self guarded_data ) ; let wbuffer = WriteBuffer { buffer : buf . clone ( ) , offset : 0 , len : 0 , close : true , connection_id : self . connection_id , } ; guarded_data . write_queue . push ( wbuffer ) ; guarded_data . wakeup ( ) ? ; Ok ( ( ) ) }
Close the connection associated with this write handle.
Close the connection associated with this write handle .
&self
&self