pub fn put_tuple(&self, tuple: &Vec<E>) -> std::io::Result<bool> {
	    let mut stream_err = TcpStream::connect(&self.connection);
	    match stream_err {
	    	Ok(mut stream) => {
	    		stream.write_all(&ti(PUT));
				send_tuple(tuple, &mut stream);
				stream.shutdown(Shutdown::Write);
				return Ok(true);
	    	}
	    	Err(why) => {
	    		return Err(why);
	    	}
	    }
	}
/// Puts tuple to the tuple space
///
/// # Examples
///
/// ```
/// conn.put_tuple(&vec![E::I(123), E::S("123".to_string())]);
/// ```
///
/// # Errors
///
/// Returns Err if disconnected, or incorrect data arrived
Puts tuple to the tuple space
Puts tuple to the tuple space
pub fn put_tuple(&self, tuple: &Vec<E>) -> std::io::Result<bool> {
	    let mut stream_err = TcpStream::connect(&self.connection);
	    match stream_err {
	    	Ok(mut stream) => {
	    		stream.write_all(&ti(PUT));
				send_tuple(tuple, &mut stream);
				stream.shutdown(Shutdown::Write);
				return Ok(true);
	    	}
	    	Err(why) => {
	    		return Err(why);
	    	}
	    }
	}
pub fn put_tuple ( & self , tuple : & Vec < E > ) -> std :: io :: Result < bool > { let mut stream_err = TcpStream :: connect ( & self . connection ) ; match stream_err { Ok ( mut stream ) => { stream . write_all ( & ti ( PUT ) ) ; send_tuple ( tuple , & mut stream ) ; stream . shutdown ( Shutdown :: Write ) ; return Ok ( true ) ; } Err ( why ) => { return Err ( why ) ; } } }
Puts tuple to the tuple space
Puts tuple to the tuple space
&self
tuple
&Vec<E>
&self
tuple
&Vec<E>
examples
None
errors
Returns Err if disconnected, or incorrect data arrived
Returns Err if disconnected or incorrect data arrived